hlsenc: use the segment filename in the playlist entry
Avoid calling av_get_frame_filename twice, once to generate the segment filename and once to generate the playlist.
This commit is contained in:
		
							parent
							
								
									6dd93ee6f1
								
							
						
					
					
						commit
						ae85d6c9c0
					
				@ -85,9 +85,7 @@ static int append_entry(HLSContext *hls, uint64_t duration)
 | 
				
			|||||||
    if (!en)
 | 
					    if (!en)
 | 
				
			||||||
        return AVERROR(ENOMEM);
 | 
					        return AVERROR(ENOMEM);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    av_get_frame_filename(en->name, sizeof(en->name),
 | 
					    av_strlcpy(en->name, av_basename(hls->avf->filename), sizeof(en->name));
 | 
				
			||||||
                          av_basename(hls->basename),
 | 
					 | 
				
			||||||
                          hls->number -1);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    en->duration = duration;
 | 
					    en->duration = duration;
 | 
				
			||||||
    en->next     = NULL;
 | 
					    en->next     = NULL;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user