Change #271729
| Category | ffmpeg |
| Changed by | James Almer <jamrial@gmail.com> |
| Changed at | Thu 18 Jun 2026 23:17:23 |
| Repository | https://git.ffmpeg.org/ffmpeg.git |
| Project | ffmpeg |
| Branch | master |
| Revision | dedb75a810cfe3b0be696d3802c733885d94fd18 |
Comments
avcodec/encode: take into account priming samples in the last packet duration The generic code was setting the last packet duration based on the input frame while ignoring the fact the encoder may have output an initial padding amount of samples in the first (e.g. 481 for mp2, 256 for AC3, etc). Signed-off-by: James Almer <jamrial@gmail.com>
Changed files
- libavcodec/encode.c
- tests/ref/fate/autorotate
- tests/ref/fate/ffmpeg-filter_complex_audio
- tests/ref/fate/generic-tags-remux-asf
- tests/ref/fate/matroska-encoding-delay
- tests/ref/lavf/mkv
- tests/ref/lavf/mkv_attachment