mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
sds: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
3c659bc43e
commit
e968ae81f2
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ static int sds_read_header(AVFormatContext *ctx)
|
|||
avio_skip(pb, 11);
|
||||
|
||||
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||
st->codecpar->channels = 1;
|
||||
st->codecpar->ch_layout.nb_channels = 1;
|
||||
st->codecpar->sample_rate = sample_period ? 1000000000 / sample_period : 16000;
|
||||
st->duration = (avio_size(pb) - 21) / (127) * s->size / 4;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue