avcodec/utils: Assert that audio decoders do not report using more data than was input
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
c265763318
commit
c94d9079b1
@ -2539,6 +2539,7 @@ int attribute_align_arg avcodec_decode_audio4(AVCodecContext *avctx,
|
||||
ret = ff_thread_decode_frame(avctx, frame, got_frame_ptr, &tmp);
|
||||
else {
|
||||
ret = avctx->codec->decode(avctx, frame, got_frame_ptr, &tmp);
|
||||
av_assert0(ret <= tmp.size);
|
||||
frame->pkt_dts = avpkt->dts;
|
||||
}
|
||||
if (ret >= 0 && *got_frame_ptr) {
|
||||
|
Loading…
Reference in New Issue
Block a user