You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/hlsenc: refine the hlsenc code
because the oc have been potint to hls->avf or hls->vtt_avf here is not needed point once again Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
@@ -1317,11 +1317,6 @@ static int hls_write_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( st->codecpar->codec_type == AVMEDIA_TYPE_SUBTITLE )
|
|
||||||
oc = hls->vtt_avf;
|
|
||||||
else
|
|
||||||
oc = hls->avf;
|
|
||||||
|
|
||||||
if ((ret = hls_window(s, 0)) < 0) {
|
if ((ret = hls_window(s, 0)) < 0) {
|
||||||
av_free(old_filename);
|
av_free(old_filename);
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user