Commit 7e531b24 authored by Anton Khirnov's avatar Anton Khirnov Committed by James Almer

dtshddec: convert to new channel layout API

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 0e289faf
......@@ -104,7 +104,7 @@ static int dtshd_read_header(AVFormatContext *s)
duration *= avio_rb16(pb); // samples_per_frames
st->duration = duration;
avio_skip(pb, 5);
st->codecpar->channels = ff_dca_count_chs_for_mask(avio_rb16(pb));
st->codecpar->ch_layout.nb_channels = ff_dca_count_chs_for_mask(avio_rb16(pb));
st->codecpar->initial_padding = avio_rb16(pb);
avio_skip(pb, chunk_size - 21);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment