Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-04 23:35:31 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-06-05 00:10:56 +0300
commitc94d9079b16c35834b8bcd15cb43ca50e0a25485 (patch)
treea3d53770a99db725a785dbf5d07d7c8d40f545c3 /libavcodec/utils.c
parentc2657633187e325a439e3297fd9ccd0522ab2e39 (diff)
avcodec/utils: Assert that audio decoders do not report using more data than was input
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 8695cb9689..558afebc2f 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -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) {