[FFmpeg-user] In and out-range Scale option able to correct 0-255 video to 0-235?
Carl Eugen Hoyos
cehoyos at ag.or.at
Tue May 19 23:08:52 CEST 2015
Christoph Gerstbauer <christoph.gerstbauer <at> gmail.com> writes:
> C:\Windows\System32>ffmpeg -i
> C:\Users\Administrator\Desktop\big_buck_bunny_ffvhuff.avi -vf
> "scale=in_range=full:out_range=tv" -vcodec ffvhuff
Please test with the following inlined patch
and -cpuflags 0:
diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c
index 2a3d008..3c488ca 100644
--- a/libavfilter/vf_scale.c
+++ b/libavfilter/vf_scale.c
@@ -343,7 +343,7 @@ static int config_props(AVFilterLink *outlink)
if (scale->isws[1])
sws_freeContext(scale->isws[1]);
scale->isws[0] = scale->isws[1] = scale->sws = NULL;
- if (inlink->w == outlink->w && inlink->h == outlink->h &&
+ if (0&&inlink->w == outlink->w && inlink->h == outlink->h &&
inlink->format == outlink->format)
;
else {
Carl Eugen
More information about the ffmpeg-user
mailing list