diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-26 19:54:41 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-26 19:54:41 +0200 |
commit | 8aa9853093400134a35f7b5bfeb0cc7bd14b0279 (patch) | |
tree | ef3fe0128813d59e902c3366bf3f325deb55422f /libavformat/ircamenc.c | |
parent | 1fb9b2a2832444935c4c2fd5679266b0629d1bfd (diff) | |
download | ffmpeg-8aa9853093400134a35f7b5bfeb0cc7bd14b0279.tar.gz |
avformat/ircamenc: Avoid floats
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/ircamenc.c')
-rw-r--r-- | libavformat/ircamenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/ircamenc.c b/libavformat/ircamenc.c index 38f15fbceb..1a829d4c08 100644 --- a/libavformat/ircamenc.c +++ b/libavformat/ircamenc.c @@ -43,7 +43,7 @@ static int ircam_write_header(AVFormatContext *s) } avio_wl32(s->pb, 0x0001A364); - avio_wl32(s->pb, av_float2int(codec->sample_rate)); + avio_wl32(s->pb, av_q2intfloat((AVRational){codec->sample_rate, 1})); avio_wl32(s->pb, codec->channels); avio_wl32(s->pb, tag); ffio_fill(s->pb, 0, 1008); |