diff options
author | Anton Khirnov <anton@khirnov.net> | 2019-05-13 11:11:26 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:36 -0300 |
commit | 4e864b4780f271f5c7224d8e530e0b7438b2fe95 (patch) | |
tree | 787c9ba24b29e3fdbfd0b5f26ef2e2771710ffd0 | |
parent | 23f14dd9578a5279a2fc28346a872f38d104beb3 (diff) | |
download | ffmpeg-4e864b4780f271f5c7224d8e530e0b7438b2fe95.tar.gz |
rawenc: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavformat/rawenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rawenc.c b/libavformat/rawenc.c index f8c267c4c9..26c7e8fef1 100644 --- a/libavformat/rawenc.c +++ b/libavformat/rawenc.c @@ -79,7 +79,7 @@ static int adx_write_trailer(AVFormatContext *s) if (pb->seekable & AVIO_SEEKABLE_NORMAL) { int64_t file_size = avio_tell(pb); - uint64_t sample_count = (file_size - 36) / par->channels / 18 * 32; + uint64_t sample_count = (file_size - 36) / par->ch_layout.nb_channels / 18 * 32; if (sample_count <= UINT32_MAX) { avio_seek(pb, 12, SEEK_SET); avio_wb32(pb, sample_count); |