lvf: convert to new channel layout API

Signed-off-by: James Almer <jamrial@gmail.com>
release/5.1
Anton Khirnov 6 years ago committed by James Almer
parent 51c2c6ff59
commit 190c78680d
  1. 2
      libavformat/lvfdec.c

@ -79,7 +79,7 @@ static int lvf_read_header(AVFormatContext *s)
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
st->codecpar->codec_tag = avio_rl16(s->pb);
st->codecpar->channels = avio_rl16(s->pb);
st->codecpar->ch_layout.nb_channels = avio_rl16(s->pb);
st->codecpar->sample_rate = avio_rl16(s->pb);
avio_skip(s->pb, 8);
st->codecpar->bits_per_coded_sample = avio_r8(s->pb);

Loading…
Cancel
Save