aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2017-03-31 18:12:01 +0200
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:36 -0300
commit23f14dd9578a5279a2fc28346a872f38d104beb3 (patch)
treeca5d13d3f32b21cd6e7a99937f58453d04981fce
parentf508cb1378388012b87ba0fb157af25f54370990 (diff)
downloadffmpeg-23f14dd9578a5279a2fc28346a872f38d104beb3.tar.gz
r3d: 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/r3d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/r3d.c b/libavformat/r3d.c
index c98e3dbc66..be119b6b74 100644
--- a/libavformat/r3d.c
+++ b/libavformat/r3d.c
@@ -286,7 +286,7 @@ static int r3d_read_reda(AVFormatContext *s, AVPacket *pkt, Atom *atom)
return AVERROR(ENOMEM);
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
st->codecpar->codec_id = AV_CODEC_ID_PCM_S32BE;
- st->codecpar->channels = r3d->audio_channels;
+ st->codecpar->ch_layout.nb_channels = r3d->audio_channels;
avpriv_set_pts_info(st, 32, 1, s->streams[0]->time_base.den);
} else {
st = s->streams[1];