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
071f1afb
Commit
071f1afb
authored
Dec 18, 2013
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcommon.h: move code around
parent
681bf48f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
modules/codec/avcodec/avcommon.h
modules/codec/avcodec/avcommon.h
+23
-23
No files found.
modules/codec/avcodec/avcommon.h
View file @
071f1afb
...
...
@@ -37,6 +37,29 @@
#include "avcommon_compat.h"
#ifdef HAVE_LIBAVUTIL_AVUTIL_H
# include <libavutil/avutil.h>
# include <libavutil/dict.h>
#define AV_OPTIONS_TEXT "Advanced options"
#define AV_OPTIONS_LONGTEXT "Advanced options, in the form {opt=val,opt2=val2}."
static
inline
AVDictionary
*
vlc_av_get_options
(
const
char
*
psz_opts
)
{
AVDictionary
*
options
=
NULL
;
config_chain_t
*
cfg
=
NULL
;
config_ChainParseOptions
(
&
cfg
,
psz_opts
);
while
(
cfg
)
{
config_chain_t
*
next
=
cfg
->
p_next
;
av_dict_set
(
&
options
,
cfg
->
psz_name
,
cfg
->
psz_value
,
AV_DICT_DONT_STRDUP_KEY
|
AV_DICT_DONT_STRDUP_VAL
);
free
(
cfg
);
cfg
=
next
;
}
return
options
;
}
#endif
unsigned
GetVlcDspMask
(
void
);
#ifdef HAVE_LIBAVFORMAT_AVFORMAT_H
...
...
@@ -70,27 +93,4 @@ static inline void vlc_init_avcodec(void)
}
#endif
#ifdef HAVE_LIBAVUTIL_AVUTIL_H
# include <libavutil/avutil.h>
# include <libavutil/dict.h>
#define AV_OPTIONS_TEXT "Advanced options"
#define AV_OPTIONS_LONGTEXT "Advanced options, in the form {opt=val,opt2=val2}."
static
inline
AVDictionary
*
vlc_av_get_options
(
const
char
*
psz_opts
)
{
AVDictionary
*
options
=
NULL
;
config_chain_t
*
cfg
=
NULL
;
config_ChainParseOptions
(
&
cfg
,
psz_opts
);
while
(
cfg
)
{
config_chain_t
*
next
=
cfg
->
p_next
;
av_dict_set
(
&
options
,
cfg
->
psz_name
,
cfg
->
psz_value
,
AV_DICT_DONT_STRDUP_KEY
|
AV_DICT_DONT_STRDUP_VAL
);
free
(
cfg
);
cfg
=
next
;
}
return
options
;
}
#endif
#endif
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