aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h263.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-09-20 13:47:47 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-09-20 13:47:47 +0000
commit9ebb8e11248f85cb9a93aca6e2f91696f0621a89 (patch)
treeb3b7076f7c67b8d8adb43e555cbb12382ba56db9 /libavcodec/h263.c
parent2c3cee348f798471b01eaf62983b471b311013f6 (diff)
downloadffmpeg-9ebb8e11248f85cb9a93aca6e2f91696f0621a89.tar.gz
check if the user specified timestamps are strictly monotone
timestamp guess code 10l fix Originally committed as revision 3483 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263.c')
-rw-r--r--libavcodec/h263.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c
index 3eec00504c..f7421ca0c6 100644
--- a/libavcodec/h263.c
+++ b/libavcodec/h263.c
@@ -2112,11 +2112,13 @@ void ff_set_mpeg4_time(MpegEncContext * s, int picture_number){
if(s->pict_type==B_TYPE){
s->pb_time= s->pp_time - (s->last_non_b_time - s->time);
+ assert(s->pb_time > 0 && s->pb_time < s->pp_time);
}else{
s->last_time_base= s->time_base;
s->time_base= time_div;
s->pp_time= s->time - s->last_non_b_time;
s->last_non_b_time= s->time;
+ assert(s->pp_time > 0);
}
}