aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-11-29 20:19:27 +0100
committerAnton Khirnov <anton@khirnov.net>2013-12-09 08:44:24 +0100
commit85f947aefb3dae81f65f518acdffa8e31c679654 (patch)
treed3c6fab336a5a35ef74defbdcd729a5177065683
parentd4f0f2d1e80b76260eb6b9cdde472ac069dfda56 (diff)
downloadffmpeg-85f947aefb3dae81f65f518acdffa8e31c679654.tar.gz
lavc: remove a pointless check in decode_audio4()
av_frame_unref() works fine on unallocated frames.
-rw-r--r--libavcodec/utils.c2
1 files changed, 1 insertions, 1 deletions
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);
}