1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-05 22:52:18 +00:00
mpv/common
TheAMM b0386fc543 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.
2021-07-08 12:44:06 +03:00
..
av_common.c av_common: trim FLAC extradata when copying codec params 2021-07-08 12:44:06 +03:00
av_common.h demux: use no overlapping packets for lossless audio 2019-09-19 20:37:04 +02:00
av_log.c player: rearrange libav* library check 2020-03-08 19:38:10 +01:00
av_log.h player: rearrange libav* library check 2020-03-08 19:38:10 +01:00
codecs.c codecs: remove unused family field 2018-02-01 10:21:55 +01:00
codecs.h codecs: remove unused family field 2018-02-01 10:21:55 +01:00
common.c common: add helper for subtracting rectangles 2020-05-22 14:17:46 +02:00
common.h common: add helper for subtracting rectangles 2020-05-22 14:17:46 +02:00
encode_lavc.c build: address AVCodec, AVInputFormat, AVOutputFormat const warnings 2021-05-01 22:07:31 +02:00
encode_lavc.h build: address AVCodec, AVInputFormat, AVOutputFormat const warnings 2021-05-01 22:07:31 +02:00
encode.h encode: disable unsupported media types automatically 2020-09-03 14:13:17 +02:00
global.h stats: some more performance graphs 2020-04-09 00:33:38 +02:00
msg_control.h player: add --term-title option 2020-05-25 20:39:37 +02:00
msg.c msg: fix really-quiet option to only affect terminal output 2021-02-23 00:56:21 +02:00
msg.h msg: add function to reduce log level 2020-05-10 16:40:26 +02:00
playlist.c client API: report IDs of inserted playlist entries on loading playlist 2020-03-27 00:57:11 +01:00
playlist.h client API: report IDs of inserted playlist entries on loading playlist 2020-03-27 00:57:11 +01:00
recorder.c recorder: clear packet queue after they've been muxed 2021-07-08 12:44:06 +03:00
recorder.h recorder: don't use a magic index for mp_recorder_get_sink() 2019-09-29 01:41:19 +02:00
stats.c player, stats: more silly debug stuff 2020-04-10 00:55:39 +02:00
stats.h player, stats: more silly debug stuff 2020-04-10 00:55:39 +02:00
tags.c demux: support for some kinds of timed metadata 2018-04-18 01:17:42 +03:00
tags.h demux: support for some kinds of timed metadata 2018-04-18 01:17:42 +03:00
version.c build: change filenames of generated files 2020-06-04 16:59:05 +02:00