Mercurial > libavcodec.hg
diff h263.c @ 1257:6defe392d5d2 libavcodec
libmpeg2 style bitstream reader fixes
author | michaelni |
---|---|
date | Wed, 14 May 2003 10:55:59 +0000 |
parents | 625ccacd1113 |
children | 362947395f5c |
line wrap: on
line diff
--- a/h263.c Wed May 14 10:54:25 2003 +0000 +++ b/h263.c Wed May 14 10:55:59 2003 +0000 @@ -2708,7 +2708,7 @@ if(s->pict_type==I_TYPE){ int i; - if(show_bits(&s->gb, 19)==DC_MARKER){ + if(show_bits_long(&s->gb, 19)==DC_MARKER){ return mb_num-1; } @@ -2956,7 +2956,7 @@ s->mb_num_left= mb_num; if(s->pict_type==I_TYPE){ - if(get_bits(&s->gb, 19)!=DC_MARKER){ + if(get_bits_long(&s->gb, 19)!=DC_MARKER){ fprintf(stderr, "marker missing after first I partition at %d %d\n", s->mb_x, s->mb_y); return -1; } @@ -3885,7 +3885,7 @@ int format, width, height; /* picture start code */ - if (get_bits(&s->gb, 22) != 0x20) { + if (get_bits_long(&s->gb, 22) != 0x20) { fprintf(stderr, "Bad picture start code\n"); return -1; } @@ -4878,7 +4878,7 @@ int format; /* picture header */ - if (get_bits(&s->gb, 22) != 0x20) { + if (get_bits_long(&s->gb, 22) != 0x20) { fprintf(stderr, "Bad picture start code\n"); return -1; }