diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-02-18 01:58:00 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-02-18 01:58:00 +0000 |
commit | bb6f51aeab88a252cf08f5a0ec26ab41ae2d74a2 (patch) | |
tree | 730bbf3a1c3d95539e0e6beef2f606c9e913db9d /libavcodec/h263.c | |
parent | 3696d2bb83ea19436eb3165c66482e61470c3ee0 (diff) | |
download | ffmpeg-bb6f51aeab88a252cf08f5a0ec26ab41ae2d74a2.tar.gz |
avoid overflow of picturenumber*fps*10000
bug found by Lennert Buytenhek <buytenh@gnu.org>
Originally committed as revision 302 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263.c')
-rw-r--r-- | libavcodec/h263.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c index 37087dcc85..900d8ce00c 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -68,7 +68,7 @@ void h263_encode_picture_header(MpegEncContext * s, int picture_number) s->gob_number = 0; put_bits(&s->pb, 22, 0x20); /* PSC */ - put_bits(&s->pb, 8, ((s->picture_number * 30 * FRAME_RATE_BASE) / + put_bits(&s->pb, 8, (((INT64)s->picture_number * 30 * FRAME_RATE_BASE) / s->frame_rate) & 0xff); put_bits(&s->pb, 1, 1); /* marker */ |