diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-11-09 12:29:35 +0100 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:33 -0300 |
commit | 368f50404d07f9cade50ec4ff607b8b784501cc0 (patch) | |
tree | a22bc843f8ed17cbd5535725db21db04db2dbfd9 | |
parent | af6b3f2dbf0365a94815478969337265bee1f372 (diff) | |
download | ffmpeg-368f50404d07f9cade50ec4ff607b8b784501cc0.tar.gz |
jack: port to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavdevice/jack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/jack.c b/libavdevice/jack.c index b9a167bed3..e34eb8961c 100644 --- a/libavdevice/jack.c +++ b/libavdevice/jack.c @@ -255,7 +255,7 @@ static int audio_read_header(AVFormatContext *context) stream->codecpar->codec_id = AV_CODEC_ID_PCM_F32LE; #endif stream->codecpar->sample_rate = self->sample_rate; - stream->codecpar->channels = self->nports; + stream->codecpar->ch_layout.nb_channels = self->nports; avpriv_set_pts_info(stream, 64, 1, 1000000); /* 64 bits pts in us */ return 0; |