aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-04-13 13:17:35 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-04-13 13:17:35 +0000
commit6c205de2441874e9af568a59d45d396bd00960cd (patch)
tree8a013cdc8fb5ca469c1ba9c8580f10db4ee7a7c5 /libavcodec
parent17c22f574b2817d9782ff3404a1b528221e3728b (diff)
downloadffmpeg-6c205de2441874e9af568a59d45d396bd00960cd.tar.gz
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
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h263.c1
1 files changed, 1 insertions, 0 deletions
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);