diff mbox series

[FFmpeg-devel,12/25] avformat/utils: Remove redundant flushing of packet queue

Message ID AM7PR03MB6660FF08AAE21697C0CB3D0A8FC89@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit 2c3c83663daced2218d81ebb29bdb9962fa2f3ea
Headers show
Series [FFmpeg-devel,01/25] avformat/matroskadec: Fix heap-buffer overflow upon gigantic timestamps | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/configureppc warning Failed to apply patch

Commit Message

Andreas Rheinhardt Aug. 27, 2021, 2:27 p.m. UTC
The packet queue is already flushed in avformat_free_context() which
is called a few lines below.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavformat/utils.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

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);