diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-03-31 18:06:05 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:36 -0300 |
commit | 5347f2920f188f5c026108193fa9c54df8afc34c (patch) | |
tree | fcb4e488d88b480d71fec79a8916efc07e906850 /libavformat/pcm.c | |
parent | 57141d73c7005565137f25fe10bcebd58070343b (diff) | |
download | ffmpeg-5347f2920f188f5c026108193fa9c54df8afc34c.tar.gz |
pcm: convert to new channel layout API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/pcm.c')
-rw-r--r-- | libavformat/pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/pcm.c b/libavformat/pcm.c index e91117ce5a..9741f73667 100644 --- a/libavformat/pcm.c +++ b/libavformat/pcm.c @@ -63,7 +63,7 @@ int ff_pcm_read_seek(AVFormatContext *s, st = s->streams[0]; block_align = st->codecpar->block_align ? st->codecpar->block_align : - (av_get_bits_per_sample(st->codecpar->codec_id) * st->codecpar->channels) >> 3; + (av_get_bits_per_sample(st->codecpar->codec_id) * st->codecpar->ch_layout.nb_channels) >> 3; byte_rate = st->codecpar->bit_rate ? st->codecpar->bit_rate >> 3 : block_align * st->codecpar->sample_rate; |