diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-10-12 19:18:37 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-10-12 19:18:37 +0000 |
commit | bba3a09bb085e09ab894483c94eea3d97fe959a2 (patch) | |
tree | 9c56d93b59e1be5803bd51ff3ef356bfbc17dd91 | |
parent | 34790165dcdd438d9b12b78733740d240af56a65 (diff) | |
download | ffmpeg-bba3a09bb085e09ab894483c94eea3d97fe959a2.tar.gz |
h263 GOB decoding fix
Originally committed as revision 2364 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/h263.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c index 0acbe65cfa..58ce351585 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -2843,10 +2843,10 @@ void ff_mpeg4_clean_buffers(MpegEncContext *s) int ff_h263_resync(MpegEncContext *s){ int left, ret; - if(s->codec_id==CODEC_ID_MPEG4) + if(s->codec_id==CODEC_ID_MPEG4){ skip_bits1(&s->gb); - - align_get_bits(&s->gb); + align_get_bits(&s->gb); + } if(show_bits(&s->gb, 16)==0){ if(s->codec_id==CODEC_ID_MPEG4) @@ -3316,7 +3316,7 @@ int ff_h263_decode_mb(MpegEncContext *s, int16_t *mot_val; static int8_t quant_tab[4] = { -1, -2, 1, 2 }; const int xy= s->mb_x + s->mb_y * s->mb_stride; - + if (s->pict_type == P_TYPE || s->pict_type==S_TYPE) { do{ if (get_bits1(&s->gb)) { |