aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h263dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-10-19 01:31:26 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-10-19 01:31:26 +0000
commit8b32880cc90ab9bdf473b3a0ae27ac06e877b367 (patch)
treee3ba37cb1f29a856e725e0e756176f20d5f68f14 /libavcodec/h263dec.c
parentfb8a9e2f37c79370d4dfb9cab2ff3b3c44cdb20f (diff)
downloadffmpeg-8b32880cc90ab9bdf473b3a0ae27ac06e877b367.tar.gz
fixing h263 decoding (did segfault)
Originally committed as revision 1049 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r--libavcodec/h263dec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index 8b3c59b2c0..77eda7bb0b 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -475,13 +475,14 @@ uint64_t time= rdtsc();
break;
}
- if(s->msmpeg4_version!=4)
+ if(s->msmpeg4_version!=4 && s->h263_pred)
ff_mpeg4_clean_buffers(s);
decode_slice(s);
+
s->error_status_table[s->resync_mb_x + s->resync_mb_y*s->mb_width]|= VP_START;
}
-
+
if (s->h263_msmpeg4 && s->msmpeg4_version<4 && s->pict_type==I_TYPE)
if(msmpeg4_decode_ext_header(s, buf_size) < 0) return -1;