diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-10-19 23:48:08 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-10-19 23:48:08 +0000 |
commit | 35aa136a77772b69fa9857820be2352189e81c80 (patch) | |
tree | 94497aa0d0a84b3389e531a69f799600af501496 | |
parent | 49943a18d0b419f495fb77d36f931ae58645adc1 (diff) | |
download | ffmpeg-35aa136a77772b69fa9857820be2352189e81c80.tar.gz |
fixing h263 slice decoding (again)
Originally committed as revision 1051 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/h263dec.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index 77eda7bb0b..b8ea14c34c 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -204,7 +204,7 @@ static int decode_slice(MpegEncContext *s){ if(ret<0){ const int xy= s->mb_x + s->mb_y*s->mb_width; if(ret==SLICE_END){ -//printf("%d %d %06X\n", s->mb_x, s->gb.size*8 - get_bits_count(&s->gb), show_bits(&s->gb, 24)); +//printf("%d %d %d %06X\n", s->mb_x, s->mb_y, s->gb.size*8 - get_bits_count(&s->gb), show_bits(&s->gb, 24)); s->error_status_table[xy]|= AC_END; if(!s->partitioned_frame) s->error_status_table[xy]|= MV_END|DC_END; @@ -420,13 +420,13 @@ uint64_t time= rdtsc(); avctx->aspected_height = s->aspected_height; } - if (s->codec_id==CODEC_ID_H263 && s->codec_id==CODEC_ID_H263) - s->gob_index = ff_h263_get_gob_height(s); - if (MPV_common_init(s) < 0) return -1; } - + + if((s->codec_id==CODEC_ID_H263 || s->codec_id==CODEC_ID_H263P)) + s->gob_index = ff_h263_get_gob_height(s); + if(ret==FRAME_SKIPED) return get_consumed_bytes(s, buf_size); /* skip if the header was thrashed */ if (ret < 0){ |