mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-06 17:29:08 +08:00
avformat/utils: Remove always-false check
AVFormatContext.internal is already allocated by avformat_alloc_context() on success; and on error, avformat_alloc_context() cleans up manually without avformat_free_context(). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -1742,8 +1742,6 @@ return_packet:
|
|||||||
/* XXX: suppress the packet queue */
|
/* XXX: suppress the packet queue */
|
||||||
static void flush_packet_queue(AVFormatContext *s)
|
static void flush_packet_queue(AVFormatContext *s)
|
||||||
{
|
{
|
||||||
if (!s->internal)
|
|
||||||
return;
|
|
||||||
avpriv_packet_list_free(&s->internal->parse_queue, &s->internal->parse_queue_end);
|
avpriv_packet_list_free(&s->internal->parse_queue, &s->internal->parse_queue_end);
|
||||||
avpriv_packet_list_free(&s->internal->packet_buffer, &s->internal->packet_buffer_end);
|
avpriv_packet_list_free(&s->internal->packet_buffer, &s->internal->packet_buffer_end);
|
||||||
avpriv_packet_list_free(&s->internal->raw_packet_buffer, &s->internal->raw_packet_buffer_end);
|
avpriv_packet_list_free(&s->internal->raw_packet_buffer, &s->internal->raw_packet_buffer_end);
|
||||||
|
Reference in New Issue
Block a user