From ba9dd312ef83fd6074ca6ad2ab0966c6ebb93b8a Mon Sep 17 00:00:00 2001 From: gnattu Date: Tue, 15 Oct 2024 08:48:59 +0800 Subject: [PATCH] also remove dovi config --- debian/patches/0077-add-remove-dovi-hdr10plus-bsf.patch | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/debian/patches/0077-add-remove-dovi-hdr10plus-bsf.patch b/debian/patches/0077-add-remove-dovi-hdr10plus-bsf.patch index 686d6b62e8..130eec9d2a 100644 --- a/debian/patches/0077-add-remove-dovi-hdr10plus-bsf.patch +++ b/debian/patches/0077-add-remove-dovi-hdr10plus-bsf.patch @@ -19,7 +19,7 @@ Index: FFmpeg/libavcodec/bsf/h265_metadata.c } H265MetadataContext; -@@ -385,6 +388,37 @@ static int h265_metadata_update_fragment +@@ -385,6 +388,40 @@ static int h265_metadata_update_fragment if (err < 0) return err; } @@ -32,6 +32,9 @@ Index: FFmpeg/libavcodec/bsf/h265_metadata.c + ff_cbs_delete_unit(au, i); + av_log(bsf, AV_LOG_DEBUG, "Removing Dolby Vision EL\n"); + } ++ av_packet_side_data_remove(bsf->par_out->coded_side_data, ++ &bsf->par_out->nb_coded_side_data, ++ AV_PKT_DATA_DOVI_CONF); + } + if (ctx->remove_hdr10plus) { + // This implementation is not strictly correct as it does not decode the entire NAL. @@ -57,7 +60,7 @@ Index: FFmpeg/libavcodec/bsf/h265_metadata.c } return 0; -@@ -478,6 +512,13 @@ static const AVOption h265_metadata_opti +@@ -478,6 +515,13 @@ static const AVOption h265_metadata_opti { LEVEL("8.5", 255) }, #undef LEVEL