[FFmpeg-devel] [PATCH 059/281] flic: convert to new channel layout API
James Almer
jamrial at gmail.com
Thu Jan 13 03:50:21 EET 2022
From: Vittorio Giovara <vittorio.giovara at gmail.com>
Signed-off-by: Vittorio Giovara <vittorio.giovara at gmail.com>
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavformat/flic.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/flic.c b/libavformat/flic.c
index 44ed696421..496402aa94 100644
--- a/libavformat/flic.c
+++ b/libavformat/flic.c
@@ -157,10 +157,10 @@ static int flic_read_header(AVFormatContext *s)
ast->codecpar->codec_id = AV_CODEC_ID_PCM_U8;
ast->codecpar->codec_tag = 0;
ast->codecpar->sample_rate = FLIC_TFTD_SAMPLE_RATE;
- ast->codecpar->channels = 1;
+ ast->codecpar->format = AV_SAMPLE_FMT_U8;
ast->codecpar->bit_rate = st->codecpar->sample_rate * 8;
ast->codecpar->bits_per_coded_sample = 8;
- ast->codecpar->channel_layout = AV_CH_LAYOUT_MONO;
+ ast->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO;
ast->codecpar->extradata_size = 0;
/* Since the header information is incorrect we have to figure out the
--
2.34.1
More information about the ffmpeg-devel
mailing list