1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00
FFmpeg/libavcodec
Andreas Rheinhardt 968c158abd avcodec/ac3enc: Use actual size of buffer in init_put_bits()
Since the very beginning (since de6d9b6404bfd1c589799142da5a95428f146edd)
the AC-3 encoder used AC3_MAX_CODED_FRAME_SIZE (namely 3840) for the
size of the output buffer (without any check at all).
This causes problems when encoding EAC-3 for which the maximum is too small,
smaller than the actual size of the buffer: One can run into asserts used
by the PutBits API. Ticket #8513 is about such a case and this commit
fixes it by using the real size of the buffer.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-04-02 12:06:56 +02:00
..
2021-03-22 02:43:04 +01:00
2021-03-09 13:41:22 +01:00
2021-03-22 02:43:04 +01:00
2021-03-22 02:43:04 +01:00
2021-03-22 02:43:04 +01:00
2021-03-09 13:41:22 +01:00
2021-03-09 13:41:22 +01:00
2021-03-22 02:43:04 +01:00
2021-03-22 02:43:04 +01:00
2021-03-09 13:41:22 +01:00
2021-03-22 02:43:04 +01:00
2021-03-09 13:41:22 +01:00
2021-03-09 13:41:22 +01:00
2021-03-22 02:43:04 +01:00
2021-03-22 02:43:04 +01:00
2021-03-09 13:41:22 +01:00
2021-03-22 02:43:04 +01:00
2021-03-22 02:43:04 +01:00
2021-03-29 22:19:39 +02:00
2021-03-22 02:43:04 +01:00
2021-03-22 02:43:04 +01:00
2021-04-01 14:45:54 +02:00
2021-03-09 13:41:22 +01:00