}
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;
return 0;
}
-AVInputFormat ff_ircam_demuxer = {
+const AVInputFormat ff_ircam_demuxer = {
.name = "ircam",
.long_name = NULL_IF_CONFIG_SMALL("Berkeley/IRCAM/CARL Sound Format"),
.read_probe = ircam_probe,