1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

lavc: remove a pointless check in decode_audio4()

av_frame_unref() works fine on unallocated frames.
This commit is contained in:
Anton Khirnov 2013-11-29 20:19:27 +01:00
parent d4f0f2d1e8
commit 85f947aefb

View File

@ -1478,7 +1478,7 @@ int attribute_align_arg avcodec_decode_audio4(AVCodecContext *avctx,
frame->extended_buf = NULL; frame->extended_buf = NULL;
frame->nb_extended_buf = 0; frame->nb_extended_buf = 0;
} }
} else if (frame->data[0]) } else
av_frame_unref(frame); av_frame_unref(frame);
} }