mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-20 14:31:09 +00:00
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:
parent
736284e7b9
commit
b7284f2410
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user