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@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-08-26 20:43:22 +02:00
parent bafb65ba2a
commit 2c3c83663d

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