Files
ffmpeg/tests/ref/fate/ac3-fixed-encode-2
T
James Almer b5bfb7716c 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>
2026-07-02 17:53:20 -03:00

15 lines
672 B
Plaintext

#tb 0: 1/44100
#media_type 0: audio
#codec_id 0: ac3
#sample_rate 0: 44100
#channel_layout_name 0: 5.1(side)
0, -256, -256, 1536, 1114, 0x32fd276c
0, 1280, 1280, 1536, 1116, 0x1ac63ba7
0, 2816, 2816, 1536, 1114, 0xdde82dbc
0, 4352, 4352, 1536, 1114, 0x39313179
0, 5888, 5888, 1536, 1116, 0x166214e2
0, 7424, 7424, 1536, 1114, 0xfbcc27ad
0, 8960, 8960, 1536, 1114, 0xe7ed3321
0, 10496, 10496, 1536, 1114, 0xa1823473
0, 12032, 12032, 256, 1116, 0x7cc628e3, S=1, Skip Samples, 10, 0x00190005