aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/swfenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-24 12:38:54 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-24 13:32:53 +0200
commit28134d6a0e1462c7bc6807284738ed552ef6d2a5 (patch)
tree9fac89bb61f492bf3eb2c25be0e18d367ab17bc8 /libavformat/swfenc.c
parent5d4ff4a31e0ed7ce365e001bec31ea01c45cc568 (diff)
downloadffmpeg-28134d6a0e1462c7bc6807284738ed552ef6d2a5.tar.gz
avformat/swfenc: Remove another unneeded float computation
fewer chances for rounding differences between platforms is better Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/swfenc.c')
-rw-r--r--libavformat/swfenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/swfenc.c b/libavformat/swfenc.c
index 4580651e75..56d9879017 100644
--- a/libavformat/swfenc.c
+++ b/libavformat/swfenc.c
@@ -236,7 +236,7 @@ static int swf_write_header(AVFormatContext *s)
}
if (!swf->audio_enc)
- swf->samples_per_frame = (44100.0 * rate_base) / rate;
+ swf->samples_per_frame = (44100LL * rate_base) / rate;
else
swf->samples_per_frame = (swf->audio_enc->sample_rate * rate_base) / rate;