[Ffmpeg-devel] [RFC] VC1 frame decoder

Nico Sabbi nicola_sabbi
Sun Jan 21 12:23:56 CET 2007


Kostya wrote:
> Forgot to attach.
> 
> 
> ------------------------------------------------------------------------
> 

still crashing for me (p4)

> +                int code;
> +                // search for frame/field start code
> +                code = AV_RB32(buf);
> +                while(skip < buf_size - 4){
> +                    code <<= 8;
> +                    code |= buf[skip++];
> +                    if(code == 0x0000010D || code == 0x0000010C) break;
> +                }

shouldn't this block read:

while(code != 0x0000010D && code != 0x0000010C && skip < buf_size - 4)  {
     code <<= 8;
     code |= buf[skip++];
}


-- 
"Without a frontend, mplayer is useless" - someone in mplayer-users




More information about the ffmpeg-devel mailing list