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

Steven Liu lq at chinaffmpeg.org
Fri Nov 17 11:22:10 EET 2017


fix CID: 1421196

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

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 {
-- 
2.11.0 (Apple Git-81)





More information about the ffmpeg-devel mailing list