]> git.sesse.net Git - ffmpeg/commitdiff
avformat/swfenc: Remove another unneeded float computation
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 24 May 2015 10:38:54 +0000 (12:38 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 24 May 2015 11:32:53 +0000 (13:32 +0200)
fewer chances for rounding differences between platforms is better

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/swfenc.c

index 4580651e753604dd4a5eab33899d53d8de53f5ae..56d9879017717be2b06efcb595fd2dfcf9f76647 100644 (file)
@@ -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;