Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
a685fdeb
Commit
a685fdeb
authored
Apr 25, 2012
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat: initialize empty options sets
parent
42f72172
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
modules/demux/avformat/demux.c
modules/demux/avformat/demux.c
+2
-1
No files found.
modules/demux/avformat/demux.c
View file @
a685fdeb
...
@@ -253,10 +253,11 @@ int OpenDemux( vlc_object_t *p_this )
...
@@ -253,10 +253,11 @@ int OpenDemux( vlc_object_t *p_this )
#if LIBAVFORMAT_VERSION_INT >= ((53<<16)+(26<<8)+0)
#if LIBAVFORMAT_VERSION_INT >= ((53<<16)+(26<<8)+0)
char
*
psz_opts
=
var_InheritString
(
p_demux
,
"avformat-options"
);
char
*
psz_opts
=
var_InheritString
(
p_demux
,
"avformat-options"
);
AVDictionary
*
options
[
p_sys
->
ic
->
nb_streams
];
AVDictionary
*
options
[
p_sys
->
ic
->
nb_streams
];
for
(
unsigned
i
=
0
;
i
<
p_sys
->
ic
->
nb_streams
;
i
++
)
options
[
i
]
=
NULL
;
if
(
psz_opts
&&
*
psz_opts
)
{
if
(
psz_opts
&&
*
psz_opts
)
{
options
[
0
]
=
vlc_av_get_options
(
psz_opts
);
options
[
0
]
=
vlc_av_get_options
(
psz_opts
);
for
(
unsigned
i
=
1
;
i
<
p_sys
->
ic
->
nb_streams
;
i
++
)
{
for
(
unsigned
i
=
1
;
i
<
p_sys
->
ic
->
nb_streams
;
i
++
)
{
options
[
i
]
=
NULL
;
av_dict_copy
(
&
options
[
i
],
options
[
0
],
0
);
av_dict_copy
(
&
options
[
i
],
options
[
0
],
0
);
}
}
}
}
...
...
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