forked from FFmpeg/FFmpeg
mp3on4: do not needlessly set data_size to 0
This commit is contained in:
parent
99975966c3
commit
ec6d743118
1 changed files with 0 additions and 1 deletions
|
@ -2047,7 +2047,6 @@ static int decode_frame_mp3on4(AVCodecContext * avctx,
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
*data_size = 0;
|
|
||||||
// Discard too short frames
|
// Discard too short frames
|
||||||
if (buf_size < HEADER_SIZE)
|
if (buf_size < HEADER_SIZE)
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
|
|
Loading…
Add table
Reference in a new issue