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>
pull/365/head
Andreas Rheinhardt 4 years ago
parent bafb65ba2a
commit 2c3c83663d
  1. 2
      libavformat/utils.c

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

Loading…
Cancel
Save