[FFmpeg-cvslog] avformat/utils: Remove redundant flushing of packet queue

Andreas Rheinhardt git at videolan.org
Tue Aug 31 18:43:40 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Thu Aug 26 20:43:22 2021 +0200| [2c3c83663daced2218d81ebb29bdb9962fa2f3ea] | committer: Andreas Rheinhardt

avformat/utils: Remove redundant flushing of packet queue

The packet queue is already flushed in avformat_free_context() which
is called a few lines below.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

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

 libavformat/utils.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 67a1d158b4..79fa9382cf 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -4340,8 +4340,6 @@ void avformat_close_input(AVFormatContext **ps)
         (s->flags & AVFMT_FLAG_CUSTOM_IO))
         pb = NULL;
 
-    flush_packet_queue(s);
-
     if (s->iformat)
         if (s->iformat->read_close)
             s->iformat->read_close(s);



More information about the ffmpeg-cvslog mailing list