aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-05-07 13:00:56 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-05-07 13:00:56 +0000
commita0aa73544c14fee6853822d5c28d522aca3486ae (patch)
tree669a3eb7a45715ec0b08edb4136810f03d89e3f4 /libavfilter
parent06e1db056da6b092ee576a4ab91fbdd905b4f1e1 (diff)
downloadffmpeg-a0aa73544c14fee6853822d5c28d522aca3486ae.tar.gz
c99 sucks. Replacing scanf("%i") by strtoul()
Originally committed as revision 23053 to svn://svn.ffmpeg.org/ffmpeg/trunk
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 e65057cfd7..6c9630159d 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 */