Mercurial > libavcodec.hg
diff 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 |
line wrap: on
line diff
--- a/cavs_parser.c Tue Feb 10 14:27:16 2009 +0000 +++ b/cavs_parser.c Tue Feb 10 16:34:45 2009 +0000 @@ -60,7 +60,7 @@ for(; i<buf_size; i++){ state= (state<<8) | buf[i]; if((state&0xFFFFFF00) == 0x100){ - if(state < SLICE_MIN_START_CODE || state > SLICE_MAX_START_CODE){ + if(state > SLICE_MAX_START_CODE){ pc->frame_start_found=0; pc->state=-1; return i-3;