Commit 80097bbf authored by Michael Niedermayer's avatar Michael Niedermayer

cleanup mpeg1/2 bitstream parser

Originally committed as revision 1813 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 5cd62665
......@@ -325,14 +325,16 @@ static int mpeg4_find_frame_end(MpegEncContext *s, uint8_t *buf, int buf_size){
}
}
}
for(; i<buf_size; i++){
if(vop_found){
for(; i<buf_size; i++){
state= (state<<8) | buf[i];
if((state&0xFFFFFF00) == 0x100){
pc->frame_start_found=0;
pc->state=-1;
return i-3;
}
}
}
pc->frame_start_found= vop_found;
pc->state= state;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment