summaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_scale.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c
index e65057c..6c96301 100644
--- a/libavfilter/vf_scale.c
+++ b/libavfilter/vf_scale.c
@@ -46,11 +46,13 @@ typedef struct {
static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
{
ScaleContext *scale = ctx->priv;
+ const char *p;
scale->flags = SWS_BILINEAR;
if (args){
sscanf(args, "%d:%d", &scale->w, &scale->h);
- sscanf(strstr(args,"flags="), "flags=%i", &scale->flags);
+ p= strstr(args,"flags=");
+ if(p) scale->flags= strtoul(p+6, NULL, 0);
}
/* sanity check params */
OpenPOWER on IntegriCloud