[FFmpeg-devel] [PATCH] lavf: stop filtering side data in mkv

Michael Bradshaw mjbshaw at google.com
Mon Feb 10 22:45:43 EET 2020


matroskaenc.c currently only allows BlockMore elements if the BlockAddID is
1. Recently YouTube has been using BlockAddID == 4 for HDR10+ dynamic
metadata (see [1]), which FFmpeg drops because of its filtering.

The attached patch changes matroskaenc.c so it stops filtering
by BlockAddID, allowing FFmpeg to retain metadata from WebM and Matroska
streams when remuxing.

[1]: https://www.webmproject.org/docs/container/#BlockAddID
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lavf-stop-filtering-side-data-in-mkv.patch
Type: application/x-patch
Size: 1799 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200210/0d2bf87a/attachment.bin>


More information about the ffmpeg-devel mailing list