Skip to content
Snippets Groups Projects
Commit d5ee3d96 authored by Niklas Haas's avatar Niklas Haas
Browse files

utils/libav: ignore color levels for RGB frames

As clarified by @cyanreg, FFmpeg filters are supposed to ignore
obviously "wrong" combinations, in particular RGB + limited range.
parent dc5ee672
No related branches found
No related tags found
No related merge requests found
Pipeline #43400 passed with stages
in 9 minutes and 25 seconds
This commit is part of merge request !124. Comments created here will be created in the context of that merge request.
...@@ -472,6 +472,7 @@ static inline void pl_frame_from_avframe(struct pl_frame *out, ...@@ -472,6 +472,7 @@ static inline void pl_frame_from_avframe(struct pl_frame *out,
} else if (desc->flags & AV_PIX_FMT_FLAG_RGB) { } else if (desc->flags & AV_PIX_FMT_FLAG_RGB) {
out->repr.sys = PL_COLOR_SYSTEM_RGB; out->repr.sys = PL_COLOR_SYSTEM_RGB;
out->repr.levels = PL_COLOR_LEVELS_FULL; // libav* ignores levels for RGB
} else if (!out->repr.sys) { } else if (!out->repr.sys) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment