aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vqavideo.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-02-22 22:44:15 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-02-22 22:44:15 +0100
commit80ddf7889eecef0a9f9f4d7e3e8a0b2e3f700521 (patch)
tree7cfc3cb358683d932f3a82fe6dda8dc858736373 /libavcodec/vqavideo.c
parent4be63111d1a29a13153cc25dcd9681dbbe7e0851 (diff)
parent6626a7df534591c1eaed860bcb2f61610a3727f4 (diff)
downloadffmpeg-80ddf7889eecef0a9f9f4d7e3e8a0b2e3f700521.tar.gz
Merge remote-tracking branch 'qatar/release/9' into release/1.1
* qatar/release/9: doc: Fix some obsolete references to av* tools as ff* tools vqavideo: check chunk sizes before reading chunks roqvideodec: check dimensions validity qdm2: check array index before use, fix out of array accesses mpegvideo: Do REBASE_PICTURE with byte pointers Conflicts: libavcodec/qdm2.c libavcodec/roqvideodec.c libavcodec/vqavideo.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vqavideo.c')
-rw-r--r--libavcodec/vqavideo.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/vqavideo.c b/libavcodec/vqavideo.c
index 22ec309f82..f78055f566 100644
--- a/libavcodec/vqavideo.c
+++ b/libavcodec/vqavideo.c
@@ -538,7 +538,8 @@ static int vqa_decode_chunk(VqaContext *s)
chunk_size = bytestream2_get_be32(&s->gb);
if (chunk_size > MAX_CODEBOOK_SIZE - s->next_codebook_buffer_index) {
- av_log(s->avctx, AV_LOG_ERROR, "cbp0 chunk too large (0x%X bytes)\n", chunk_size);
+ av_log(s->avctx, AV_LOG_ERROR, "cbp0 chunk too large (%u bytes)\n",
+ chunk_size);
return AVERROR_INVALIDDATA;
}
@@ -566,7 +567,8 @@ static int vqa_decode_chunk(VqaContext *s)
chunk_size = bytestream2_get_be32(&s->gb);
if (chunk_size > MAX_CODEBOOK_SIZE - s->next_codebook_buffer_index) {
- av_log(s->avctx, AV_LOG_ERROR, "cbpz chunk too large (0x%X bytes)\n", chunk_size);
+ av_log(s->avctx, AV_LOG_ERROR, "cbpz chunk too large (%u bytes)\n",
+ chunk_size);
return AVERROR_INVALIDDATA;
}