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
61dcaf5f
Commit
61dcaf5f
authored
Apr 03, 2020
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf, lavfi: Remove uses of sizeof(char).
The C standard requires sizeof(char) == 1.
parent
e61767c4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
dnn_backend_tf.c
libavfilter/dnn/dnn_backend_tf.c
+1
-1
vf_deshake.c
libavfilter/vf_deshake.c
+2
-2
webmdashenc.c
libavformat/webmdashenc.c
+1
-1
No files found.
libavfilter/dnn/dnn_backend_tf.c
View file @
61dcaf5f
...
...
@@ -95,7 +95,7 @@ static TF_Tensor *allocate_input_tensor(const DNNData *input)
break
;
case
DNN_UINT8
:
dt
=
TF_UINT8
;
size
=
sizeof
(
char
)
;
size
=
1
;
break
;
default:
av_assert0
(
!
"should not reach here"
);
...
...
libavfilter/vf_deshake.c
View file @
61dcaf5f
...
...
@@ -354,7 +354,7 @@ static av_cold int init(AVFilterContext *ctx)
if
(
deshake
->
filename
)
deshake
->
fp
=
fopen
(
deshake
->
filename
,
"w"
);
if
(
deshake
->
fp
)
fwrite
(
"Ori x, Avg x, Fin x, Ori y, Avg y, Fin y, Ori angle, Avg angle, Fin angle, Ori zoom, Avg zoom, Fin zoom
\n
"
,
sizeof
(
char
)
,
104
,
deshake
->
fp
);
fwrite
(
"Ori x, Avg x, Fin x, Ori y, Avg y, Fin y, Ori angle, Avg angle, Fin angle, Ori zoom, Avg zoom, Fin zoom
\n
"
,
1
,
104
,
deshake
->
fp
);
// Quadword align left edge of box for MMX code, adjust width if necessary
// to keep right margin
...
...
@@ -485,7 +485,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
// Write statistics to file
if
(
deshake
->
fp
)
{
snprintf
(
tmp
,
256
,
"%f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f
\n
"
,
orig
.
vec
.
x
,
deshake
->
avg
.
vec
.
x
,
t
.
vec
.
x
,
orig
.
vec
.
y
,
deshake
->
avg
.
vec
.
y
,
t
.
vec
.
y
,
orig
.
angle
,
deshake
->
avg
.
angle
,
t
.
angle
,
orig
.
zoom
,
deshake
->
avg
.
zoom
,
t
.
zoom
);
fwrite
(
tmp
,
sizeof
(
char
)
,
strlen
(
tmp
),
deshake
->
fp
);
fwrite
(
tmp
,
1
,
strlen
(
tmp
),
deshake
->
fp
);
}
// Turn relative current frame motion into absolute by adding it to the
...
...
libavformat/webmdashenc.c
View file @
61dcaf5f
...
...
@@ -439,7 +439,7 @@ static int write_adaptation_set(AVFormatContext *s, int as_index)
static
int
to_integer
(
char
*
p
,
int
len
)
{
int
ret
;
char
*
q
=
av_malloc
(
sizeof
(
char
)
*
len
);
char
*
q
=
av_malloc
(
len
);
if
(
!
q
)
return
AVERROR
(
ENOMEM
);
av_strlcpy
(
q
,
p
,
len
);
...
...
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