Skip to content

Commit

Permalink
also remove dovi config
Browse files Browse the repository at this point in the history
  • Loading branch information
gnattu committed Oct 15, 2024
1 parent 2906612 commit ba9dd31
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions debian/patches/0077-add-remove-dovi-hdr10plus-bsf.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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.
Expand All @@ -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

Expand Down

0 comments on commit ba9dd31

Please sign in to comment.