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
f0029cbc
Commit
f0029cbc
authored
Apr 29, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf: use designated initializers for AVClasses.
parent
13220b18
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
14 deletions
+34
-14
avio.c
libavformat/avio.c
+6
-2
crypto.c
libavformat/crypto.c
+4
-1
http.c
libavformat/http.c
+4
-1
mp3enc.c
libavformat/mp3enc.c
+4
-4
mpegtsenc.c
libavformat/mpegtsenc.c
+4
-4
options.c
libavformat/options.c
+6
-1
spdifenc.c
libavformat/spdifenc.c
+6
-1
No files found.
libavformat/avio.c
View file @
f0029cbc
...
@@ -39,8 +39,12 @@ static const char *urlcontext_to_name(void *ptr)
...
@@ -39,8 +39,12 @@ static const char *urlcontext_to_name(void *ptr)
else
return
"NULL"
;
else
return
"NULL"
;
}
}
static
const
AVOption
options
[]
=
{{
NULL
}};
static
const
AVOption
options
[]
=
{{
NULL
}};
static
const
AVClass
urlcontext_class
=
static
const
AVClass
urlcontext_class
=
{
{
"URLContext"
,
urlcontext_to_name
,
options
,
LIBAVUTIL_VERSION_INT
};
.
class_name
=
"URLContext"
,
.
item_name
=
urlcontext_to_name
,
.
option
=
options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
/*@}*/
/*@}*/
static
int
default_interrupt_cb
(
void
);
static
int
default_interrupt_cb
(
void
);
...
...
libavformat/crypto.c
View file @
f0029cbc
...
@@ -52,7 +52,10 @@ static const AVOption options[] = {
...
@@ -52,7 +52,10 @@ static const AVOption options[] = {
};
};
static
const
AVClass
crypto_class
=
{
static
const
AVClass
crypto_class
=
{
"crypto"
,
av_default_item_name
,
options
,
LIBAVUTIL_VERSION_INT
.
class_name
=
"crypto"
,
.
item_name
=
av_default_item_name
,
.
option
=
options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
};
static
int
crypto_open
(
URLContext
*
h
,
const
char
*
uri
,
int
flags
)
static
int
crypto_open
(
URLContext
*
h
,
const
char
*
uri
,
int
flags
)
...
...
libavformat/http.c
View file @
f0029cbc
...
@@ -58,7 +58,10 @@ static const AVOption options[] = {
...
@@ -58,7 +58,10 @@ static const AVOption options[] = {
{
NULL
}
{
NULL
}
};
};
static
const
AVClass
httpcontext_class
=
{
static
const
AVClass
httpcontext_class
=
{
"HTTP"
,
av_default_item_name
,
options
,
LIBAVUTIL_VERSION_INT
.
class_name
=
"HTTP"
,
.
item_name
=
av_default_item_name
,
.
option
=
options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
};
static
int
http_connect
(
URLContext
*
h
,
const
char
*
path
,
const
char
*
hoststr
,
static
int
http_connect
(
URLContext
*
h
,
const
char
*
path
,
const
char
*
hoststr
,
...
...
libavformat/mp3enc.c
View file @
f0029cbc
...
@@ -167,10 +167,10 @@ static const AVOption options[] = {
...
@@ -167,10 +167,10 @@ static const AVOption options[] = {
};
};
static
const
AVClass
mp3_muxer_class
=
{
static
const
AVClass
mp3_muxer_class
=
{
"MP3 muxer"
,
.
class_name
=
"MP3 muxer"
,
av_default_item_name
,
.
item_name
=
av_default_item_name
,
options
,
.
option
=
options
,
LIBAVUTIL_VERSION_INT
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
};
static
int
id3v2_check_write_tag
(
AVFormatContext
*
s
,
AVMetadataTag
*
t
,
const
char
table
[][
4
],
static
int
id3v2_check_write_tag
(
AVFormatContext
*
s
,
AVMetadataTag
*
t
,
const
char
table
[][
4
],
...
...
libavformat/mpegtsenc.c
View file @
f0029cbc
...
@@ -89,10 +89,10 @@ static const AVOption options[] = {
...
@@ -89,10 +89,10 @@ static const AVOption options[] = {
};
};
static
const
AVClass
mpegts_muxer_class
=
{
static
const
AVClass
mpegts_muxer_class
=
{
"MPEGTS muxer"
,
.
class_name
=
"MPEGTS muxer"
,
av_default_item_name
,
.
item_name
=
av_default_item_name
,
options
,
.
option
=
options
,
LIBAVUTIL_VERSION_INT
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
};
/* NOTE: 4 bytes must be left at the end for the crc32 */
/* NOTE: 4 bytes must be left at the end for the crc32 */
...
...
libavformat/options.c
View file @
f0029cbc
...
@@ -64,7 +64,12 @@ static const AVOption options[]={
...
@@ -64,7 +64,12 @@ static const AVOption options[]={
#undef D
#undef D
#undef DEFAULT
#undef DEFAULT
static
const
AVClass
av_format_context_class
=
{
"AVFormatContext"
,
format_to_name
,
options
,
LIBAVUTIL_VERSION_INT
};
static
const
AVClass
av_format_context_class
=
{
.
class_name
=
"AVFormatContext"
,
.
item_name
=
format_to_name
,
.
option
=
options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
static
void
avformat_get_context_defaults
(
AVFormatContext
*
s
)
static
void
avformat_get_context_defaults
(
AVFormatContext
*
s
)
{
{
...
...
libavformat/spdifenc.c
View file @
f0029cbc
...
@@ -93,7 +93,12 @@ static const AVOption options[] = {
...
@@ -93,7 +93,12 @@ static const AVOption options[] = {
{
NULL
},
{
NULL
},
};
};
static
const
AVClass
class
=
{
"spdif"
,
av_default_item_name
,
options
,
LIBAVUTIL_VERSION_INT
};
static
const
AVClass
class
=
{
.
class_name
=
"spdif"
,
.
item_name
=
av_default_item_name
,
.
option
=
options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
static
int
spdif_header_ac3
(
AVFormatContext
*
s
,
AVPacket
*
pkt
)
static
int
spdif_header_ac3
(
AVFormatContext
*
s
,
AVPacket
*
pkt
)
{
{
...
...
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