|
|
|
@ -87,8 +87,8 @@ static int ircam_read_header(AVFormatContext *s) |
|
|
|
|
return AVERROR(ENOMEM); |
|
|
|
|
|
|
|
|
|
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; |
|
|
|
|
st->codecpar->channels = channels; |
|
|
|
|
if (st->codecpar->channels > FF_SANE_NB_CHANNELS) |
|
|
|
|
st->codecpar->ch_layout.nb_channels = channels; |
|
|
|
|
if (st->codecpar->ch_layout.nb_channels > FF_SANE_NB_CHANNELS) |
|
|
|
|
return AVERROR(ENOSYS); |
|
|
|
|
st->codecpar->sample_rate = sample_rate; |
|
|
|
|
|
|
|
|
@ -99,7 +99,8 @@ static int ircam_read_header(AVFormatContext *s) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
st->codecpar->bits_per_coded_sample = av_get_bits_per_sample(st->codecpar->codec_id); |
|
|
|
|
st->codecpar->block_align = st->codecpar->bits_per_coded_sample * st->codecpar->channels / 8; |
|
|
|
|
st->codecpar->block_align = st->codecpar->bits_per_coded_sample * |
|
|
|
|
st->codecpar->ch_layout.nb_channels / 8; |
|
|
|
|
avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate); |
|
|
|
|
avio_skip(s->pb, 1008); |
|
|
|
|
|
|
|
|
|