summaryrefslogtreecommitdiff
path: root/libavformat/hlsenc.c
diff options
context:
space:
mode:
authorSteven Liu <lq@chinaffmpeg.org>2017-01-13 07:59:48 +0800
committerSteven Liu <lq@chinaffmpeg.org>2017-01-13 07:59:48 +0800
commit3222786c5ad9f6ca94ca4cd80a4329a276d65aaa (patch)
tree24d9a8a7c0517a1e73248f3888280057dae41e2d /libavformat/hlsenc.c
parentb97e9cba0b3b926aa3f9940519e93f2ade599af2 (diff)
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>
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r--libavformat/hlsenc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index fbd014e4c6..f02b8875a1 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;