Change #273770
| Category | ffmpeg |
| Changed by | James Almer <jamrial@gmail.com> |
| Changed at | Thu 02 Jul 2026 22:53:20 |
| Repository | https://git.ffmpeg.org/ffmpeg.git |
| Project | ffmpeg |
| Branch | master |
| Revision | b5bfb7716c4914efdccbc3b507a77d676616be51 |
Comments
avcodec/ac3enc: drain the buffered samples at the end of encoding When encoding a stream with an amount of samples multiple of a block, the last the last 256 samples would be lost as the encoders were not marked as AV_CODEC_CAP_DELAY. This can be easily reproduced with: ffmpeg -f lavfi -i sine -ac 2 -af atrim=start_sample=0:end_sample=4608 -c:a eac3 -f framecrc - Signed-off-by: James Almer <jamrial@gmail.com>
Changed files
- libavcodec/ac3enc.c
- libavcodec/ac3enc.h
- libavcodec/ac3enc_fixed.c
- libavcodec/ac3enc_float.c
- libavcodec/ac3enc_template.c
- libavcodec/eac3enc.c
- tests/fate/ac3.mak
- tests/ref/fate/ac3-fixed-encode-2
- tests/ref/fate/shortest