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
f4f3300c
Commit
f4f3300c
authored
May 30, 2011
by
Piotr Kaczuba
Committed by
Reinhard Tartler
Aug 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
postprocess.c: filter name needs to be double 0 terminated
Signed-off-by:
Reinhard Tartler
<
siretart@tauware.de
>
parent
02494787
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
postprocess.c
libpostproc/postprocess.c
+3
-2
No files found.
libpostproc/postprocess.c
View file @
f4f3300c
...
@@ -731,7 +731,8 @@ pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality)
...
@@ -731,7 +731,8 @@ pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality)
ppMode
->
maxClippedThreshold
=
0
.
01
;
ppMode
->
maxClippedThreshold
=
0
.
01
;
ppMode
->
error
=
0
;
ppMode
->
error
=
0
;
av_strlcpy
(
temp
,
name
,
GET_MODE_BUFFER_SIZE
);
memset
(
temp
,
0
,
GET_MODE_BUFFER_SIZE
);
av_strlcpy
(
temp
,
name
,
GET_MODE_BUFFER_SIZE
-
1
);
av_log
(
NULL
,
AV_LOG_DEBUG
,
"pp: %s
\n
"
,
name
);
av_log
(
NULL
,
AV_LOG_DEBUG
,
"pp: %s
\n
"
,
name
);
...
@@ -787,7 +788,7 @@ pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality)
...
@@ -787,7 +788,7 @@ pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality)
plen
=
strlen
(
p
);
plen
=
strlen
(
p
);
spaceLeft
=
p
-
temp
+
plen
;
spaceLeft
=
p
-
temp
+
plen
;
if
(
spaceLeft
+
newlen
>=
GET_MODE_BUFFER_SIZE
){
if
(
spaceLeft
+
newlen
>=
GET_MODE_BUFFER_SIZE
-
1
){
ppMode
->
error
++
;
ppMode
->
error
++
;
break
;
break
;
}
}
...
...
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