# HG changeset patch # User stefang # Date 1234283685 0 # Node ID 7798afcf0b2486d5936c561f4e421f639490c916 # Parent 1045a26cb90d388d74c4e7d49aa5d40fc6f8b04f do not check for minimum slice start code, 0x00000100 is valid diff -r 1045a26cb90d -r 7798afcf0b24 cavs.h --- a/cavs.h Tue Feb 10 14:27:16 2009 +0000 +++ b/cavs.h Tue Feb 10 16:34:45 2009 +0000 @@ -25,7 +25,6 @@ #include "dsputil.h" #include "mpegvideo.h" -#define SLICE_MIN_START_CODE 0x00000101 #define SLICE_MAX_START_CODE 0x000001af #define EXT_START_CODE 0x000001b5 #define USER_START_CODE 0x000001b2 diff -r 1045a26cb90d -r 7798afcf0b24 cavs_parser.c --- 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 SLICE_MAX_START_CODE){ + if(state > SLICE_MAX_START_CODE){ pc->frame_start_found=0; pc->state=-1; return i-3; diff -r 1045a26cb90d -r 7798afcf0b24 cavsdec.c --- a/cavsdec.c Tue Feb 10 14:27:16 2009 +0000 +++ b/cavsdec.c Tue Feb 10 16:34:45 2009 +0000 @@ -678,8 +678,7 @@ //mpeg_decode_user_data(avctx,buf_ptr, input_size); break; default: - if (stc >= SLICE_MIN_START_CODE && - stc <= SLICE_MAX_START_CODE) { + if (stc <= SLICE_MAX_START_CODE) { init_get_bits(&s->gb, buf_ptr, input_size); decode_slice_header(h, &s->gb); }