diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-05-30 04:08:43 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-05-30 04:08:43 +0000 |
commit | db5dc02bd7d31243d2c4f84294907d657ab3d070 (patch) | |
tree | 200da4d52de0b1ee6efd792f8bb08a8e91ac3bd0 | |
parent | 3bbcd0bb8ac8648ebc43f3a32bdb22b632442d0a (diff) | |
download | ffmpeg-db5dc02bd7d31243d2c4f84294907d657ab3d070.tar.gz |
cast size to int64_t to avoid overflow
Originally committed as revision 18991 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index bdf168ae93..c39f76bf63 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -600,7 +600,7 @@ static int get_audio_frame_size(AVCodecContext *enc, int size) /* used for example by ADPCM codecs */ if (enc->bit_rate == 0) return -1; - frame_size = (size * 8 * enc->sample_rate) / enc->bit_rate; + frame_size = ((int64_t)size * 8 * enc->sample_rate) / enc->bit_rate; } } else { frame_size = enc->frame_size; |