mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 01:42:20 +00:00
aixdec: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
0ecd7106d7
commit
00c5526fc8
@ -64,7 +64,7 @@ static int aix_read_header(AVFormatContext *s)
|
|||||||
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
|
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||||
st->codecpar->codec_id = AV_CODEC_ID_ADPCM_ADX;
|
st->codecpar->codec_id = AV_CODEC_ID_ADPCM_ADX;
|
||||||
st->codecpar->sample_rate = avio_rb32(s->pb);
|
st->codecpar->sample_rate = avio_rb32(s->pb);
|
||||||
st->codecpar->channels = avio_r8(s->pb);
|
st->codecpar->ch_layout.nb_channels = avio_r8(s->pb);
|
||||||
avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate);
|
avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate);
|
||||||
avio_skip(s->pb, 3);
|
avio_skip(s->pb, 3);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user