[FFmpeg-devel] avformat/hlsenc: remove unused avio_open_dyn_buf call

Submitted by Steven Liu on Nov. 17, 2017, 9:22 a.m.

Details

Message ID 20171117092210.22713-1-lq@chinaffmpeg.org
State New
Headers show

Commit Message

Steven Liu Nov. 17, 2017, 9:22 a.m.
fix CID: 1421196

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
---
 libavformat/hlsenc.c | 1 -
 1 file changed, 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index e0cef8b879..d39b65fddd 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -1678,7 +1678,6 @@  static int hls_write_packet(AVFormatContext *s, AVPacket *pkt)
                 range_length = avio_close_dyn_buf(oc->pb, &buffer);
                 avio_write(hls->out, buffer, range_length);
                 hls->init_range_length = range_length;
-                avio_open_dyn_buf(&oc->pb);
                 hls->packets_written = 0;
                 ff_format_io_close(s, &hls->out);
             } else {