aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-03-29 18:19:43 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-02 21:42:15 +0200
commitffb599458f34c9ba674dc82e8f3ba07ef3b01948 (patch)
treeb86ba6422364eba988d96cffae9b81d8d0e3d22d /libavformat/utils.c
parent55ad9ece314677e4de41b73230aad042947fa6b0 (diff)
downloadffmpeg-ffb599458f34c9ba674dc82e8f3ba07ef3b01948.tar.gz
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> (cherry picked from commit 968c158abde36ebb7520706a69eebe3e8eacbd81)
Diffstat (limited to 'libavformat/utils.c')
0 files changed, 0 insertions, 0 deletions