Ticket #4812: patchscale.diff

File patchscale.diff, 626 bytes (added by Carl Eugen Hoyos, 11 years ago)
  • libavfilter/vf_scale.c

    diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c
    index a1a19bb..763a034 100644
    a b static int config_props(AVFilterLink *outlink)  
    374374            av_opt_set_int(*s, "sws_flags", scale->flags, 0);
    375375            av_opt_set_int(*s, "param0", scale->param[0], 0);
    376376            av_opt_set_int(*s, "param1", scale->param[1], 0);
     377            av_opt_set_int(*s, "src_range", scale->in_range > 1, 0);
     378            av_opt_set_int(*s, "dst_range", scale->out_range > 1, 0);
    377379
    378380            if (scale->opts) {
    379381                AVDictionaryEntry *e = NULL;