Commit 33d94b86 authored by michaelni's avatar michaelni

b-frame mpeg4 fix when seeking


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@414 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 697689fb
......@@ -2809,6 +2809,10 @@ int mpeg4_decode_picture_header(MpegEncContext * s)
}else{
s->time= (s->last_time_base + time_incr)*s->time_increment_resolution + time_increment;
s->bp_time= s->last_non_b_time - s->time;
if(s->pp_time <=s->bp_time){
// printf("messed up order, seeking?, skiping current b frame\n");
return FRAME_SKIPED;
}
}
if(check_marker(&s->gb, "before vop_coded")==0 && s->picture_number==0){
......
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