Skip to content

Commit

Permalink
utils/libav: update max_luma threshold to 5 nits
Browse files Browse the repository at this point in the history
Cosmetic change, files like that doesn't make sense anyway. This change
follows ITU-T H.264 and H.265 defined limit.
  • Loading branch information
kasper93 authored and haasn committed Mar 2, 2024
1 parent ef135c3 commit 311a595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/include/libplacebo/utils/libav_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ PL_LIBAV_API void pl_map_hdr_metadata(struct pl_hdr_metadata *out,
if (data->mdm->has_luminance) {
out->max_luma = av_q2d(data->mdm->max_luminance);
out->min_luma = av_q2d(data->mdm->min_luminance);
if (out->max_luma < 10.0 || out->min_luma >= out->max_luma)
if (out->max_luma < 5.0 || out->min_luma >= out->max_luma)
out->max_luma = out->min_luma = 0; /* sanity */
}
if (data->mdm->has_primaries) {
Expand Down

0 comments on commit 311a595

Please sign in to comment.