comparison h263.c @ 1671:a75cbb4588d1 libavcodec

100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l100l
author michael
date Tue, 09 Dec 2003 14:03:55 +0000
parents d6f2520c0c43
children 6bd7a01eca9c
comparison
equal deleted inserted replaced
1670:d6f2520c0c43 1671:a75cbb4588d1
3142 if(s->codec_id==CODEC_ID_MPEG4){ 3142 if(s->codec_id==CODEC_ID_MPEG4){
3143 skip_bits1(&s->gb); 3143 skip_bits1(&s->gb);
3144 align_get_bits(&s->gb); 3144 align_get_bits(&s->gb);
3145 } 3145 }
3146 3146
3147 //printf("checking next 16 %X\n", show_bits(&s->gb, 24));
3148 if(show_bits(&s->gb, 16)==0){ 3147 if(show_bits(&s->gb, 16)==0){
3149 if(s->codec_id==CODEC_ID_MPEG4) 3148 if(s->codec_id==CODEC_ID_MPEG4)
3150 ret= mpeg4_decode_video_packet_header(s); 3149 ret= mpeg4_decode_video_packet_header(s);
3151 else 3150 else
3152 ret= h263_decode_gob_header(s); 3151 ret= h263_decode_gob_header(s);
3154 return 0; 3153 return 0;
3155 } 3154 }
3156 //ok, its not where its supposed to be ... 3155 //ok, its not where its supposed to be ...
3157 s->gb= s->last_resync_gb; 3156 s->gb= s->last_resync_gb;
3158 align_get_bits(&s->gb); 3157 align_get_bits(&s->gb);
3159 printf("align %X\n", show_bits(&s->gb, 24));
3160 left= s->gb.size_in_bits - get_bits_count(&s->gb); 3158 left= s->gb.size_in_bits - get_bits_count(&s->gb);
3161 3159
3162 for(;left>16+1+5+5; left-=8){ 3160 for(;left>16+1+5+5; left-=8){
3163 if(show_bits(&s->gb, 16)==0){ 3161 if(show_bits(&s->gb, 16)==0){
3164 GetBitContext bak= s->gb; 3162 GetBitContext bak= s->gb;
3172 3170
3173 s->gb= bak; 3171 s->gb= bak;
3174 } 3172 }
3175 skip_bits(&s->gb, 8); 3173 skip_bits(&s->gb, 8);
3176 } 3174 }
3177 printf("no resync\n"); 3175
3178 return -1; 3176 return -1;
3179 } 3177 }
3180 3178
3181 /** 3179 /**
3182 * gets the average motion vector for a GMC MB. 3180 * gets the average motion vector for a GMC MB.