mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-28 03:13:08 +08:00
ogg: convert to new channel layout API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
committed by
James Almer
parent
f81417a6d2
commit
5b51e6771c
@@ -55,7 +55,7 @@ static int opus_header(AVFormatContext *avf, int idx)
|
||||
return AVERROR_INVALIDDATA;
|
||||
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||
st->codecpar->codec_id = AV_CODEC_ID_OPUS;
|
||||
st->codecpar->channels = AV_RL8(packet + 9);
|
||||
st->codecpar->ch_layout.nb_channels = AV_RL8(packet + 9);
|
||||
|
||||
priv->pre_skip = AV_RL16(packet + 10);
|
||||
st->codecpar->initial_padding = priv->pre_skip;
|
||||
|
||||
Reference in New Issue
Block a user