diff options
author | TheAMM <the.actual.amm@gmail.com> | 2021-07-06 00:30:18 +0300 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2021-07-08 12:44:06 +0300 |
commit | b0386fc5434e393d5e9dee97663ca59a22f2ef96 (patch) | |
tree | e1fa801809ad6e3e3d3955b8c8add53171d12cdd /libmpv | |
parent | dd9ed47c996a4e37b2ac529390ba133b62fb204a (diff) | |
download | mpv-b0386fc5434e393d5e9dee97663ca59a22f2ef96.tar.bz2 mpv-b0386fc5434e393d5e9dee97663ca59a22f2ef96.tar.xz |
av_common: trim FLAC extradata when copying codec params
For muxing, FFmpeg expects the FLAC extradata to be just the bare STREAMINFO,
and passing the full FLAC extradata (fLaC header and block size, with any
additional channel layout metadata) will result in malformed output, as
ffmpeg will simply prefix another fLaC header in front.
This can be considered to be a bug.
FFmpeg's own demuxers only store the STREAMINFO, hence the naivety, while
our common source of FLAC streams, the matroska demuxer, holds onto the
full extradata. It has been deemed preferable to adjust the extradata upon
muxing, instead of in the demuxer (ffmpeg's FLAC decoder knows to read
the full fLaC extradata).
This fixes muxing FLAC streams, meaning recorder.c or dump-cache.
Diffstat (limited to 'libmpv')
0 files changed, 0 insertions, 0 deletions