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
7cd6d61d
Commit
7cd6d61d
authored
Jul 17, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/opt: try to fix the case where src==dst in av_opt_copy()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
fa6716c6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
opt.c
libavutil/opt.c
+3
-1
No files found.
libavutil/opt.c
View file @
7cd6d61d
...
...
@@ -1559,7 +1559,9 @@ int av_opt_copy(void *dst, void *src)
uint8_t
**
field_src8
=
(
uint8_t
**
)
field_src
;
if
(
o
->
type
==
AV_OPT_TYPE_STRING
)
{
set_string
(
dst
,
o
,
*
field_src8
,
field_dst8
);
if
(
*
field_dst8
!=
*
field_src8
)
av_freep
(
field_dst8
);
*
field_dst8
=
av_strdup
(
*
field_src8
);
if
(
*
field_src8
&&
!*
field_dst8
)
ret
=
AVERROR
(
ENOMEM
);
}
else
if
(
o
->
type
==
AV_OPT_TYPE_BINARY
)
{
...
...
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