diff options
author | sfan5 <sfan5@live.de> | 2021-04-06 07:44:03 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2021-04-08 23:47:35 +0300 |
commit | 3c34e6fec4b942c92313546cacd14be539cd951f (patch) | |
tree | eefb62d083e5c6f4e759bc8f68b05465b94b6df3 /video/out/bitmap_packer.h | |
parent | 5117fa70afc0431e57231e216474a1f530094fd0 (diff) | |
download | mpv-3c34e6fec4b942c92313546cacd14be539cd951f.tar.bz2 mpv-3c34e6fec4b942c92313546cacd14be539cd951f.tar.xz |
audio/aframe: reuse data buffer if less than 8 channels
This fixes audio encoding crashing under ASan.
When extended_data != data, FFmpeg copies more pointers from
extended_data (= the number of channels) than there really
are for non-planar formats (= exactly 1), but that's not our fault.
Regardless, this commit makes it work in all common cases.
Diffstat (limited to 'video/out/bitmap_packer.h')
0 files changed, 0 insertions, 0 deletions