On Mon, Aug 31, 2015 at 05:28:12PM +0200, Carl Eugen Hoyos wrote: > Hi! > > Attached patch fixes ticket #4812 for Robert, I suspect it > will not fix all use-cases but maybe it is a good start? > > Carl Eugen
> vf_scale.c | 4 ++++ > 1 file changed, 4 insertions(+) > 7a4374034719c004e2e0616f99a7b9de3bd029b9 patchscale.diff > diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c > index a1a19bb..545e2b7 100644 > --- a/libavfilter/vf_scale.c > +++ b/libavfilter/vf_scale.c > @@ -374,6 +374,10 @@ static int config_props(AVFilterLink *outlink) > av_opt_set_int(*s, "sws_flags", scale->flags, 0); > av_opt_set_int(*s, "param0", scale->param[0], 0); > av_opt_set_int(*s, "param1", scale->param[1], 0); > + if (scale->in_range) != AVCOL_RANGE_UNSPECIFIED > + av_opt_set_int(*s, "src_range", scale->in_range > 1, 0); AVCOL_RANGE_JPEG otherwise LGTM > + if (scale->out_range) > + av_opt_set_int(*s, "dst_range", scale->out_range > 1, 0); > > if (scale->opts) { > AVDictionaryEntry *e = NULL; > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Concerning the gods, I have no means of knowing whether they exist or not or of what sort they may be, because of the obscurity of the subject, and the brevity of human life -- Protagoras
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel