mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avcodec/aacdec_template: Check decode_extension_payload() for failure
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
8695fbec57
commit
ca3d8b471f
@ -3246,9 +3246,15 @@ static int aac_decode_frame_int(AVCodecContext *avctx, void *data,
|
|||||||
err = AVERROR_INVALIDDATA;
|
err = AVERROR_INVALIDDATA;
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
while (elem_id > 0)
|
err = 0;
|
||||||
elem_id -= decode_extension_payload(ac, gb, elem_id, che_prev, che_prev_type);
|
while (elem_id > 0) {
|
||||||
err = 0; /* FIXME */
|
int ret = decode_extension_payload(ac, gb, elem_id, che_prev, che_prev_type);
|
||||||
|
if (ret < 0) {
|
||||||
|
err = ret;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
elem_id -= ret;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user