jack: port to new channel layout API

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
Anton Khirnov 2021-11-09 12:29:35 +01:00 committed by James Almer
parent af6b3f2dbf
commit 368f50404d
1 changed files with 1 additions and 1 deletions

View File

@ -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;