summaryrefslogtreecommitdiff
path: root/libavcodec/indeo4.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-07-14 14:20:42 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-07-14 14:20:42 +0200
commit76d0a6656bbfa2d43c2ef773d9b17562e60f7ed1 (patch)
tree62bdc713b7d44e713cf7db9efd9c5c872d1da60f /libavcodec/indeo4.c
parenta8e5fac1fb3fddeea829648139aa345af9cdc16c (diff)
indeo: print errors if transform and block size mismatch
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/indeo4.c')
-rw-r--r--libavcodec/indeo4.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/indeo4.c b/libavcodec/indeo4.c
index 474140e641..81a30ac4f3 100644
--- a/libavcodec/indeo4.c
+++ b/libavcodec/indeo4.c
@@ -358,8 +358,10 @@ static int decode_band_hdr(IVI45DecContext *ctx, IVIBandDesc *band,
else
band->transform_size = 4;
- if (band->blk_size != band->transform_size)
+ if (band->blk_size != band->transform_size) {
+ av_log(avctx, AV_LOG_ERROR, "transform and block size mismatch (%d != %d)\n", band->transform_size, band->blk_size);
return AVERROR_INVALIDDATA;
+ }
scan_indx = get_bits(&ctx->gb, 4);
if (scan_indx == 15) {