Mercurial > libavcodec.hg
changeset 335:e7e9d9901523 libavcodec
b-frame mpeg4 fix when seeking
author | michaelni |
---|---|
date | Mon, 22 Apr 2002 17:33:43 +0000 |
parents | 3912b37ba121 |
children | c56b45669214 |
files | h263.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/h263.c Mon Apr 22 15:53:24 2002 +0000 +++ b/h263.c Mon Apr 22 17:33:43 2002 +0000 @@ -2809,6 +2809,10 @@ }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){