summaryrefslogtreecommitdiff
path: root/libavcodec/h263dec.c
diff options
context:
space:
mode:
authorZdenek Kabelac <kabi@informatics.muni.cz>2002-02-18 09:28:05 +0000
committerZdenek Kabelac <kabi@informatics.muni.cz>2002-02-18 09:28:05 +0000
commitb4cc15e75e36dd88306fc5efc5df987078d43eb1 (patch)
treea56ca44151ff21d45725e04acf60349400ea95e5 /libavcodec/h263dec.c
parentbb6f51aeab88a252cf08f5a0ec26ab41ae2d74a2 (diff)
* continue after error in msmpeg4_decode_mb - helps for some movie samples
Originally committed as revision 303 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r--libavcodec/h263dec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index ce2c12d165..ea628bf127 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -186,8 +186,10 @@ static int h263_decode_frame(AVCodecContext *avctx,
s->mv_dir = MV_DIR_FORWARD;
s->mv_type = MV_TYPE_16X16;
if (s->h263_msmpeg4) {
- if (msmpeg4_decode_mb(s, s->block) < 0)
+ if (msmpeg4_decode_mb(s, s->block) < 0) {
+ fprintf(stderr,"\nError at MB: %d\n", (s->mb_y * s->mb_width) + s->mb_x);
return -1;
+ }
} else {
if (h263_decode_mb(s, s->block) < 0) {
fprintf(stderr,"\nError at MB: %d\n", (s->mb_y * s->mb_width) + s->mb_x);