Commit b7284f24 authored by Niklas Haas's avatar 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.
parent 736284e7
......@@ -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],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment