Change #273265
| Category | ffmpeg |
| Changed by | Daniel Verkamp <daniel@drv.nu> |
| Changed at | Tue 30 Jun 2026 05:03:30 |
| Repository | https://git.ffmpeg.org/ffmpeg.git |
| Project | ffmpeg |
| Branch | master |
| Revision | f1126f23380c805b4b8fd69351d189aeac8b892b |
Comments
avformat/wavenc: Don't count padding in rf64 data chunk size When writing the trailer for a RF64 WAV file, the ds64 chunk's 64-bit version of the data chunk size incorrectly included the padding byte that may have been added by ff_end_tag() for the data chunk. Fix this by calculating the data chunk size before calling ff_end_tag(). The data chunk padding byte is only needed when the data is not already a multiple of two bytes in length, which is fairly rare, requiring something like mono 8-bit or 24-bit PCM with an odd number of samples to trigger (and only with -rf64 auto or -rf64 always, neither of which is enabled by default), so this bug is not likely to have affected many real-world files. Signed-off-by: Daniel Verkamp <daniel@drv.nu>
Changed files
- libavformat/wavenc.c