Commit 8aa98530 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/ircamenc: Avoid floats

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1fb9b2a2
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment