mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:20:56 +01:00
mtaf: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
8bd5b70433
commit
c46192de21
1 changed files with 2 additions and 2 deletions
|
|
@ -54,9 +54,9 @@ static int mtaf_read_header(AVFormatContext *s)
|
|||
|
||||
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||
st->codecpar->codec_id = AV_CODEC_ID_ADPCM_MTAF;
|
||||
st->codecpar->channels = 2 * stream_count;
|
||||
st->codecpar->ch_layout.nb_channels = 2 * stream_count;
|
||||
st->codecpar->sample_rate = 48000;
|
||||
st->codecpar->block_align = 0x110 * st->codecpar->channels / 2;
|
||||
st->codecpar->block_align = 0x110 * st->codecpar->ch_layout.nb_channels / 2;
|
||||
avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate);
|
||||
|
||||
avio_seek(s->pb, 0x800, SEEK_SET);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue