comparison cavs_parser.c @ 8791:7798afcf0b24 libavcodec

do not check for minimum slice start code, 0x00000100 is valid
author stefang
date Tue, 10 Feb 2009 16:34:45 +0000
parents e9d9d946f213
children 7dd2a45249a9
comparison
equal deleted inserted replaced
8790:1045a26cb90d 8791:7798afcf0b24
58 if (buf_size == 0) 58 if (buf_size == 0)
59 return 0; 59 return 0;
60 for(; i<buf_size; i++){ 60 for(; i<buf_size; i++){
61 state= (state<<8) | buf[i]; 61 state= (state<<8) | buf[i];
62 if((state&0xFFFFFF00) == 0x100){ 62 if((state&0xFFFFFF00) == 0x100){
63 if(state < SLICE_MIN_START_CODE || state > SLICE_MAX_START_CODE){ 63 if(state > SLICE_MAX_START_CODE){
64 pc->frame_start_found=0; 64 pc->frame_start_found=0;
65 pc->state=-1; 65 pc->state=-1;
66 return i-3; 66 return i-3;
67 } 67 }
68 } 68 }