You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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:
@@ -4340,8 +4340,6 @@ void avformat_close_input(AVFormatContext **ps)
|
|||||||
(s->flags & AVFMT_FLAG_CUSTOM_IO))
|
(s->flags & AVFMT_FLAG_CUSTOM_IO))
|
||||||
pb = NULL;
|
pb = NULL;
|
||||||
|
|
||||||
flush_packet_queue(s);
|
|
||||||
|
|
||||||
if (s->iformat)
|
if (s->iformat)
|
||||||
if (s->iformat->read_close)
|
if (s->iformat->read_close)
|
||||||
s->iformat->read_close(s);
|
s->iformat->read_close(s);
|
||||||
|
Reference in New Issue
Block a user