diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-03-31 13:36:13 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:30 -0300 |
commit | d76c72643b3ca833ebfcb3c5c845b4b76d58ff4f (patch) | |
tree | c6b07cdf71524b11108b56b4531f00792458c073 | |
parent | e7f9f548e94aad2d3d33f7ce441cf01e0e8c4889 (diff) | |
download | ffmpeg-d76c72643b3ca833ebfcb3c5c845b4b76d58ff4f.tar.gz |
bfi: 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/bfi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/bfi.c b/libavformat/bfi.c index 69000118fa..a42b78b8c0 100644 --- a/libavformat/bfi.c +++ b/libavformat/bfi.c @@ -106,8 +106,7 @@ static int bfi_read_header(AVFormatContext * s) /* Set up the audio codec now... */ astream->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; astream->codecpar->codec_id = AV_CODEC_ID_PCM_U8; - astream->codecpar->channels = 1; - astream->codecpar->channel_layout = AV_CH_LAYOUT_MONO; + astream->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO; astream->codecpar->bits_per_coded_sample = 8; astream->codecpar->bit_rate = (int64_t)astream->codecpar->sample_rate * astream->codecpar->bits_per_coded_sample; |