diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-04-22 17:33:43 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-04-22 17:33:43 +0000 |
commit | 8d4c65d136bc76d74883e4913a8e3daf4122b38c (patch) | |
tree | a4e690677d668aa7ae426d76aae70e359cb98d07 /libavcodec/h263.c | |
parent | dc16b332f90ca133f1a8abe6b51bfc495908279b (diff) | |
download | ffmpeg-8d4c65d136bc76d74883e4913a8e3daf4122b38c.tar.gz |
b-frame mpeg4 fix when seeking
Originally committed as revision 414 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263.c')
-rw-r--r-- | libavcodec/h263.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c index 7638942cd3..305e80ddf6 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -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){ |