diff options
author | Pavel Koshevoy <pkoshevoy@gmail.com> | 2021-09-16 20:09:13 -0600 |
---|---|---|
committer | Pavel Koshevoy <pkoshevoy@gmail.com> | 2021-09-17 13:35:59 -0600 |
commit | 4fc0b75973d20425df22a9178fc2b735710a5f40 (patch) | |
tree | 28a072e783805b0b54ab0feb408333de6c6705a3 /libavfilter | |
parent | 5a95abcce4d93f979e4b53f2220f7a54edd03312 (diff) |
avfilter/vf_zscale: fix output color_range discrepancy
This filter chain was supposed to convert from narrow range
to full range yuv444p, but didn't:
buffer=width=1280:height=720:pix_fmt=yuv444p:frame_rate=25/1:\
time_base=1/25:sar=1/1,zscale=min=709:rin=limited:pin=709:\
tin=709:t=linear,format=gbrpf32le,zscale=tin=linear:p=709:m=709:\
r=full:t=709,format=pix_fmts=yuv444p,buffersink
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_zscale.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_zscale.c b/libavfilter/vf_zscale.c index dfea00f9eb..06a025e6e6 100644 --- a/libavfilter/vf_zscale.c +++ b/libavfilter/vf_zscale.c @@ -676,7 +676,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *in) out->color_primaries = (int)s->dst_format.color_primaries; if (s->range != -1) - out->color_range = (int)s->dst_format.pixel_range; + out->color_range = (int)s->dst_format.pixel_range + 1; if (s->trc != -1) out->color_trc = (int)s->dst_format.transfer_characteristics; |