From: Michael Niedermayer Date: Tue, 13 Apr 2004 13:17:35 +0000 (+0000) Subject: assert(time_incr >= 0) so its clear that this MUST be the case X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=6c205de2441874e9af568a59d45d396bd00960cd;p=ffmpeg assert(time_incr >= 0) so its clear that this MUST be the case Originally committed as revision 3010 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/h263.c b/libavcodec/h263.c index 26961025896..c60044fd37e 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -2388,6 +2388,7 @@ void mpeg4_encode_picture_header(MpegEncContext * s, int picture_number) time_div= s->time/s->time_increment_resolution; time_mod= s->time%s->time_increment_resolution; time_incr= time_div - s->last_time_base; + assert(time_incr >= 0); while(time_incr--) put_bits(&s->pb, 1, 1);