aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/indeo4.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-07-14 15:18:03 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-07-14 15:18:03 +0200
commitfebbddbdd5b2da101ab61921fea3b1bf80d86a90 (patch)
tree1e0edfd8e8e0e4a40a9ab195df2cf4c188dd3e4c /libavcodec/indeo4.c
parent76d0a6656bbfa2d43c2ef773d9b17562e60f7ed1 (diff)
downloadffmpeg-febbddbdd5b2da101ab61921fea3b1bf80d86a90.tar.gz
indeo4: print an error message if ref_mb is needed but unavailable
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 81a30ac4f3..127c2fdeab 100644
--- a/libavcodec/indeo4.c
+++ b/libavcodec/indeo4.c
@@ -528,8 +528,10 @@ static int decode_mb_info(IVI45DecContext *ctx, IVIBandDesc *band,
} else {
if (band->inherit_mv) {
/* copy mb_type from corresponding reference mb */
- if (!ref_mb)
+ if (!ref_mb) {
+ av_log(avctx, AV_LOG_ERROR, "ref_mb unavailable\n");
return AVERROR_INVALIDDATA;
+ }
mb->type = ref_mb->type;
} else if (ctx->frame_type == FRAMETYPE_INTRA ||
ctx->frame_type == FRAMETYPE_INTRA1) {