diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-11-29 20:19:27 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-12-09 08:44:24 +0100 |
commit | 85f947aefb3dae81f65f518acdffa8e31c679654 (patch) | |
tree | d3c6fab336a5a35ef74defbdcd729a5177065683 | |
parent | d4f0f2d1e80b76260eb6b9cdde472ac069dfda56 (diff) | |
download | ffmpeg-85f947aefb3dae81f65f518acdffa8e31c679654.tar.gz |
lavc: remove a pointless check in decode_audio4()
av_frame_unref() works fine on unallocated frames.
-rw-r--r-- | libavcodec/utils.c | 2 |
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); } |