Author: stefano Date: Tue Feb 24 00:12:14 2009 New Revision: 4134 Log: Extend the syntax for the args, add support for a third argument sws_opts, meant to contain the options for the SwsContext to use for scaling. Modified: libavfilter/vf_scale.c Modified: libavfilter/vf_scale.c ============================================================================== --- libavfilter/vf_scale.c Tue Feb 24 00:07:05 2009 (r4133) +++ libavfilter/vf_scale.c Tue Feb 24 00:12:14 2009 (r4134) @@ -41,6 +41,7 @@ typedef struct static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque) { ScaleContext *scale = ctx->priv; + char sws_opts[256]; /* default to no scaling */ scale->w = @@ -50,7 +51,7 @@ static av_cold int init(AVFilterContext return -1; if(args) - sscanf(args, "%d:%d", &scale->w, &scale->h); + sscanf(args, "%d:%d:%255s", &scale->w, &scale->h, sws_opts); /* sanity check parms */ if(scale->w < -1 || scale->h < -1)
participants (1)
-
stefano