mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-13 02:41:37 +00:00
rawenc: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
23f14dd957
commit
4e864b4780
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user