#include "pcm.h"
#include "ircam.h"
-static int ircam_probe(AVProbeData *p)
+static int ircam_probe(const AVProbeData *p)
{
if ((p->buf[0] == 0x64 && p->buf[1] == 0xA3 && p->buf[3] == 0x00 &&
p->buf[2] >= 1 && p->buf[2] <= 4) ||
}
if (le == 1) {
- sample_rate = av_int2float(avio_rl32(s->pb));
+ sample_rate = lrintf(av_int2float(avio_rl32(s->pb)));
channels = avio_rl32(s->pb);
tag = avio_rl32(s->pb);
tags = ff_codec_ircam_le_tags;
} else if (le == 0) {
- sample_rate = av_int2float(avio_rb32(s->pb));
+ sample_rate = lrintf(av_int2float(avio_rb32(s->pb)));
channels = avio_rb32(s->pb);
tag = avio_rb32(s->pb);
tags = ff_codec_ircam_be_tags;