History

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

Pavel Koshevoy committed 5 years ago

Commit 4fc0b751 parent 5a95abc1 file · +1 −1Browse files

Unified · Split

libavfilter/vf_zscale.c+1−1
@@ -676,7 +676,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *in) · 675 unmodified lines
676676 out->color_primaries = (int)s->dst_format.color_primaries;
677677
678678 if (s->range != -1)
679− out->color_range = (int)s->dst_format.pixel_range;
679+ out->color_range = (int)s->dst_format.pixel_range + 1;
680680
681681 if (s->trc != -1)
682682 out->color_trc = (int)s->dst_format.transfer_characteristics;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t