Commit 8136170a authored by michaelni's avatar michaelni

cleanup mpeg1/2 bitstream parser


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1813 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0e0de177
......@@ -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