Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
277fd9c2
Commit
277fd9c2
authored
Nov 19, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/avsscanf: use ptrdiff_t instead of off_t
parent
6da43921
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
avsscanf.c
libavutil/avsscanf.c
+4
-4
No files found.
libavutil/avsscanf.c
View file @
277fd9c2
...
...
@@ -39,7 +39,7 @@ typedef struct FFFILE {
unsigned
char
*
buf
;
unsigned
char
*
rpos
,
*
rend
;
unsigned
char
*
shend
;
o
ff_t
shlim
,
shcnt
;
ptrdi
ff_t
shlim
,
shcnt
;
void
*
cookie
;
size_t
(
*
read
)(
struct
FFFILE
*
,
unsigned
char
*
,
size_t
);
}
FFFILE
;
...
...
@@ -82,7 +82,7 @@ static int ffuflow(FFFILE *f)
return
EOF
;
}
static
void
ffshlim
(
FFFILE
*
f
,
o
ff_t
lim
)
static
void
ffshlim
(
FFFILE
*
f
,
ptrdi
ff_t
lim
)
{
f
->
shlim
=
lim
;
f
->
shcnt
=
f
->
buf
-
f
->
rpos
;
...
...
@@ -96,7 +96,7 @@ static void ffshlim(FFFILE *f, off_t lim)
static
int
ffshgetc
(
FFFILE
*
f
)
{
int
c
;
o
ff_t
cnt
=
shcnt
(
f
);
ptrdi
ff_t
cnt
=
shcnt
(
f
);
if
(
f
->
shlim
&&
cnt
>=
f
->
shlim
||
(
c
=
ffuflow
(
f
))
<
0
)
{
f
->
shcnt
=
f
->
buf
-
f
->
rpos
+
cnt
;
f
->
shend
=
0
;
...
...
@@ -739,7 +739,7 @@ static int ff_vfscanf(FFFILE *f, const char *fmt, va_list ap)
int
matches
=
0
;
unsigned
long
long
x
;
double
y
;
o
ff_t
pos
=
0
;
ptrdi
ff_t
pos
=
0
;
unsigned
char
scanset
[
257
];
size_t
i
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment