comparison h263.c @ 1512:e9f83c2323bf libavcodec

recommit of VOL != 0x120 support
author michael
date Sat, 11 Oct 2003 08:27:07 +0000
parents 010f76d07a27
children ad5461bad820
comparison
equal deleted inserted replaced
1511:587258262aa5 1512:e9f83c2323bf
5162 else if(startcode<=0x1C5) printf("reserved"); 5162 else if(startcode<=0x1C5) printf("reserved");
5163 else if(startcode<=0x1FF) printf("System start"); 5163 else if(startcode<=0x1FF) printf("System start");
5164 printf(" at %d\n", get_bits_count(gb)); 5164 printf(" at %d\n", get_bits_count(gb));
5165 } 5165 }
5166 5166
5167 switch(startcode){ 5167 if(startcode >= 0x120 && startcode <= 0x12F){
5168 case 0x120:
5169 if(decode_vol_header(s, gb) < 0) 5168 if(decode_vol_header(s, gb) < 0)
5170 return -1; 5169 return -1;
5171 break; 5170 }
5172 case USER_DATA_STARTCODE: 5171 else if(startcode == USER_DATA_STARTCODE){
5173 decode_user_data(s, gb); 5172 decode_user_data(s, gb);
5174 break; 5173 }
5175 case GOP_STARTCODE: 5174 else if(startcode == GOP_STARTCODE){
5176 mpeg4_decode_gop_header(s, gb); 5175 mpeg4_decode_gop_header(s, gb);
5177 break; 5176 }
5178 case VOP_STARTCODE: 5177 else if(startcode == VOP_STARTCODE){
5179 return decode_vop_header(s, gb); 5178 return decode_vop_header(s, gb);
5180 default:
5181 break;
5182 } 5179 }
5183 5180
5184 align_get_bits(gb); 5181 align_get_bits(gb);
5185 startcode = 0xff; 5182 startcode = 0xff;
5186 } 5183 }