[FFmpeg-cvslog] indeo4: print an error message if ref_mb is needed but unavailable

Michael Niedermayer git at videolan.org
Sun Jul 14 16:02:19 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jul 14 15:18:03 2013 +0200| [febbddbdd5b2da101ab61921fea3b1bf80d86a90] | committer: Michael Niedermayer

indeo4: print an error message if ref_mb is needed but unavailable

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=febbddbdd5b2da101ab61921fea3b1bf80d86a90
---

 libavcodec/indeo4.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavcodec/indeo4.c b/libavcodec/indeo4.c
index 81a30ac..127c2fd 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) {



More information about the ffmpeg-cvslog mailing list