projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc16b33
)
b-frame mpeg4 fix when seeking
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 22 Apr 2002 17:33:43 +0000
(17:33 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 22 Apr 2002 17:33:43 +0000
(17:33 +0000)
Originally committed as revision 414 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h263.c
patch
|
blob
|
history
diff --git
a/libavcodec/h263.c
b/libavcodec/h263.c
index
7638942
..
305e80d
100644
(file)
--- 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){