mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/swfenc: Remove another unneeded float computation
fewer chances for rounding differences between platforms is better Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
5d4ff4a31e
commit
28134d6a0e
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user