From 85f947aefb3dae81f65f518acdffa8e31c679654 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 29 Nov 2013 20:19:27 +0100 Subject: [PATCH] lavc: remove a pointless check in decode_audio4() av_frame_unref() works fine on unallocated frames. --- libavcodec/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/utils.c b/libavcodec/utils.c index d1a1510858..e9d6734017 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1478,7 +1478,7 @@ int attribute_align_arg avcodec_decode_audio4(AVCodecContext *avctx, frame->extended_buf = NULL; frame->nb_extended_buf = 0; } - } else if (frame->data[0]) + } else av_frame_unref(frame); }