[FFmpeg-cvslog] avfilter/vf_extractplanes: tag alpha plane as full range
Niklas Haas
git at videolan.org
Thu Nov 9 13:54:41 EET 2023
ffmpeg | branch: master | Niklas Haas <git at haasn.dev> | Fri Oct 27 16:55:06 2023 +0200| [b7284f24105c5f37aa8e6262e3ccc7b4ed157095] | committer: Niklas Haas
avfilter/vf_extractplanes: tag alpha plane as full range
Alpha planes are explicitly full range, even for limited range YUVA
formats. Mark them as such.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b7284f24105c5f37aa8e6262e3ccc7b4ed157095
---
libavfilter/vf_extractplanes.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavfilter/vf_extractplanes.c b/libavfilter/vf_extractplanes.c
index 7b7149ab24..ca406ff323 100644
--- a/libavfilter/vf_extractplanes.c
+++ b/libavfilter/vf_extractplanes.c
@@ -312,6 +312,8 @@ static int extract_plane(AVFilterLink *outlink, AVFrame *frame)
if (!out)
return AVERROR(ENOMEM);
av_frame_copy_props(out, frame);
+ if (idx == 3 /* alpha */)
+ out->color_range = AVCOL_RANGE_JPEG;
if (s->is_packed) {
extract_from_packed(out->data[0], out->linesize[0],
More information about the ffmpeg-cvslog
mailing list