diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-10-16 14:07:04 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-10-17 09:59:13 -0400 |
commit | abd8b9e7e05be481163624a9b0b1a572757e5633 (patch) | |
tree | ecefe655b7fa8c2015d4020a10e65fbe447f37c7 /tests | |
parent | c75848cd4c0961f8cfa9dbbce6c8c12641aa5124 (diff) | |
download | ffmpeg-abd8b9e7e05be481163624a9b0b1a572757e5633.tar.gz |
libmp3lame: resize the output buffer if needed
The LAME API documentation for the required buffer size refers to the size for
a single encode call. However, we store multiple frames in the same output
buffer but only read 1 frame at a time out of it. As a result, the buffer size
given in lame_encode_buffer() is actually smaller than what it should be.
Since we do not know how many frames it will end up buffering, it is best to
just reallocate if needed.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions