Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
9813af25
Commit
9813af25
authored
13 years ago
by
Clément Bœsch
Browse files
Options
Downloads
Patches
Plain Diff
ffprobe: make Writers constant.
parent
f0db0500
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ffprobe.c
+8
-8
8 additions, 8 deletions
ffprobe.c
with
8 additions
and
8 deletions
ffprobe.c
+
8
−
8
View file @
9813af25
...
...
@@ -302,9 +302,9 @@ static inline void writer_show_tags(WriterContext *wctx, AVDictionary *dict)
#define MAX_REGISTERED_WRITERS_NB 64
static
Writer
*
registered_writers
[
MAX_REGISTERED_WRITERS_NB
+
1
];
static
const
Writer
*
registered_writers
[
MAX_REGISTERED_WRITERS_NB
+
1
];
static
int
writer_register
(
Writer
*
writer
)
static
int
writer_register
(
const
Writer
*
writer
)
{
static
int
next_registered_writer_idx
=
0
;
...
...
@@ -315,7 +315,7 @@ static int writer_register(Writer *writer)
return
0
;
}
static
Writer
*
writer_get_by_name
(
const
char
*
name
)
static
const
Writer
*
writer_get_by_name
(
const
char
*
name
)
{
int
i
;
...
...
@@ -450,7 +450,7 @@ static void default_show_tags(WriterContext *wctx, AVDictionary *dict)
}
}
static
Writer
default_writer
=
{
static
const
Writer
default_writer
=
{
.
name
=
"default"
,
.
print_footer
=
default_print_footer
,
.
print_chapter_header
=
default_print_chapter_header
,
...
...
@@ -674,7 +674,7 @@ static void compact_show_tags(WriterContext *wctx, AVDictionary *dict)
}
}
static
Writer
compact_writer
=
{
static
const
Writer
compact_writer
=
{
.
name
=
"compact"
,
.
priv_size
=
sizeof
(
CompactContext
),
.
init
=
compact_init
,
...
...
@@ -694,7 +694,7 @@ static av_cold int csv_init(WriterContext *wctx, const char *args, void *opaque)
return
compact_init
(
wctx
,
"item_sep=,:nokey=1:escape=csv"
,
opaque
);
}
static
Writer
csv_writer
=
{
static
const
Writer
csv_writer
=
{
.
name
=
"csv"
,
.
priv_size
=
sizeof
(
CompactContext
),
.
init
=
csv_init
,
...
...
@@ -849,7 +849,7 @@ static void json_show_tags(WriterContext *wctx, AVDictionary *dict)
printf
(
"
\n
}"
);
}
static
Writer
json_writer
=
{
static
const
Writer
json_writer
=
{
.
name
=
"json"
,
.
priv_size
=
sizeof
(
JSONContext
),
...
...
@@ -1123,7 +1123,7 @@ static int probe_file(const char *filename)
{
AVFormatContext
*
fmt_ctx
;
int
ret
;
Writer
*
w
;
const
Writer
*
w
;
char
*
buf
;
char
*
w_name
=
NULL
,
*
w_args
=
NULL
;
WriterContext
*
wctx
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment