From ec6d743118282bbbc652372a7af44c6ec6f8048e Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Tue, 25 Oct 2011 12:46:57 -0400 Subject: [PATCH] mp3on4: do not needlessly set data_size to 0 --- libavcodec/mpegaudiodec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c index 2751df6213..d5af782ac7 100644 --- a/libavcodec/mpegaudiodec.c +++ b/libavcodec/mpegaudiodec.c @@ -2047,7 +2047,6 @@ static int decode_frame_mp3on4(AVCodecContext * avctx, return AVERROR(EINVAL); } - *data_size = 0; // Discard too short frames if (buf_size < HEADER_SIZE) return AVERROR_INVALIDDATA;