Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
4e069ba8
Commit
4e069ba8
authored
May 06, 2024
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/opt: free the temporary layout in av_opt_is_set_to_default()
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
ae0293ee
Changes
1
Hide 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 @
4e069ba8
...
...
@@ -2309,7 +2309,9 @@ int av_opt_is_set_to_default(void *obj, const AVOption *o)
if
((
ret
=
av_channel_layout_from_string
(
&
ch_layout
,
o
->
default_val
.
str
))
<
0
)
return
ret
;
}
return
!
av_channel_layout_compare
((
AVChannelLayout
*
)
dst
,
&
ch_layout
);
ret
=
!
av_channel_layout_compare
((
AVChannelLayout
*
)
dst
,
&
ch_layout
);
av_channel_layout_uninit
(
&
ch_layout
);
return
ret
;
}
case
AV_OPT_TYPE_STRING
:
str
=
*
(
char
**
)
dst
;
...
...
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