OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76d0a66
)
indeo4: print an error message if ref_mb is needed but unavailable
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 14 Jul 2013 13:18:03 +0000
(15:18 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 14 Jul 2013 13:18:03 +0000
(15:18 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/indeo4.c
patch
|
blob
|
history
diff --git
a/libavcodec/indeo4.c
b/libavcodec/indeo4.c
index
81a30ac
..
127c2fd
100644
(file)
--- 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) {