mirror of https://git.ffmpeg.org/ffmpeg.git
sds: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
3c659bc43e
commit
e968ae81f2
|
@ -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…
Reference in New Issue