]> git.sesse.net Git - ffmpeg/commitdiff
avformat/hlsenc: refine the hlsenc code
authorSteven Liu <lq@chinaffmpeg.org>
Thu, 12 Jan 2017 23:59:48 +0000 (07:59 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Thu, 12 Jan 2017 23:59:48 +0000 (07:59 +0800)
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>
libavformat/hlsenc.c

index fbd014e4c668ca80789d0f54d2480bcac49c371c..f02b8875a15b25fd0274443e932947853ec9ad41 100644 (file)
@@ -1317,11 +1317,6 @@ static int hls_write_packet(AVFormatContext *s, AVPacket *pkt)
             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) {
             av_free(old_filename);
             return ret;