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;