projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06e1db0
)
c99 sucks. Replacing scanf("%i") by strtoul()
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 7 May 2010 13:00:56 +0000
(13:00 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 7 May 2010 13:00:56 +0000
(13:00 +0000)
Originally committed as revision 23053 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavfilter/vf_scale.c
patch
|
blob
|
history
diff --git
a/libavfilter/vf_scale.c
b/libavfilter/vf_scale.c
index
e65057c
..
6c96301
100644
(file)
--- 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 */