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
f51de9ca
Commit
f51de9ca
authored
Sep 08, 2014
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/segment: abort in case of invalid segment format options
parent
e9c08e32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
segment.c
libavformat/segment.c
+4
-1
No files found.
libavformat/segment.c
View file @
f51de9ca
...
@@ -662,8 +662,10 @@ static int seg_write_header(AVFormatContext *s)
...
@@ -662,8 +662,10 @@ static int seg_write_header(AVFormatContext *s)
if
(
av_dict_count
(
options
))
{
if
(
av_dict_count
(
options
))
{
av_log
(
s
,
AV_LOG_ERROR
,
av_log
(
s
,
AV_LOG_ERROR
,
"Some of the provided format options in '%s' are not recognized
\n
"
,
seg
->
format_options_str
);
"Some of the provided format options in '%s' are not recognized
\n
"
,
seg
->
format_options_str
);
ret
=
AVERROR
(
EINVAL
);
goto
fail
;
}
}
av_dict_free
(
&
options
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
avio_close
(
oc
->
pb
);
avio_close
(
oc
->
pb
);
goto
fail
;
goto
fail
;
...
@@ -681,6 +683,7 @@ static int seg_write_header(AVFormatContext *s)
...
@@ -681,6 +683,7 @@ static int seg_write_header(AVFormatContext *s)
}
}
fail:
fail:
av_dict_free
(
&
options
);
if
(
ret
)
{
if
(
ret
)
{
if
(
seg
->
list
)
if
(
seg
->
list
)
avio_close
(
seg
->
list_pb
);
avio_close
(
seg
->
list_pb
);
...
...
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