mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
bfi: convert to new channel layout API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
e7f9f548e9
commit
d76c72643b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user