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.
This commit is contained in:
Niklas Haas 2023-10-27 16:55:06 +02:00
parent 736284e7b9
commit b7284f2410

View File

@ -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],