From 6c205de2441874e9af568a59d45d396bd00960cd Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 13 Apr 2004 13:17:35 +0000 Subject: [PATCH] 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 --- libavcodec/h263.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/h263.c b/libavcodec/h263.c index 2696102589..c60044fd37 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);