summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2017-03-31 16:36:10 +0200
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:34 -0300
commit92f3fc9f2f3948dbfddf8f749d2595427cfe906b (patch)
tree8a4df6842ba3a4b0979ed37f3d7ffe33060af90b
parent190c78680d5a1ff2e52132eb8882e679b5f931f8 (diff)
lxfdec: convert to new channel layout API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavformat/lxfdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/lxfdec.c b/libavformat/lxfdec.c
index 7889abb2c9..2d0270d718 100644
--- a/libavformat/lxfdec.c
+++ b/libavformat/lxfdec.c
@@ -281,7 +281,7 @@ static int lxf_read_header(AVFormatContext *s)
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
st->codecpar->sample_rate = LXF_SAMPLERATE;
- st->codecpar->channels = lxf->channels;
+ st->codecpar->ch_layout.nb_channels = lxf->channels;
avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate);
}