aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2017-03-31 13:58:42 +0200
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:32 -0300
commitce5165f8ada0f2744a23af0b94fe32ab71c75255 (patch)
tree85c73864fb39fb7f6269f9a00972ae489f3ce351
parente5818ab328ba33e7a1e462c9a9c992bfc5a8adbc (diff)
downloadffmpeg-ce5165f8ada0f2744a23af0b94fe32ab71c75255.tar.gz
flic: 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/flic.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/flic.c b/libavformat/flic.c
index 44ed696421..222452eac8 100644
--- a/libavformat/flic.c
+++ b/libavformat/flic.c
@@ -157,10 +157,9 @@ 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->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