[FFmpeg-cvslog] avformat/hlsenc: refine the hlsenc code

Steven Liu git at videolan.org
Fri Jan 13 02:00:02 EET 2017


ffmpeg | branch: master | Steven Liu <lq at chinaffmpeg.org> | Fri Jan 13 07:59:48 2017 +0800| [3222786c5ad9f6ca94ca4cd80a4329a276d65aaa] | committer: Steven Liu

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 at chinaffmpeg.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3222786c5ad9f6ca94ca4cd80a4329a276d65aaa
---

 libavformat/hlsenc.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index fbd014e..f02b887 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -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;



More information about the ffmpeg-cvslog mailing list