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
8b052207
Commit
8b052207
authored
Sep 16, 2012
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavu/error: make error_entries static const.
parent
e3a1eb9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
error.c
libavutil/error.c
+3
-3
No files found.
libavutil/error.c
View file @
8b052207
...
@@ -28,7 +28,7 @@ struct error_entry {
...
@@ -28,7 +28,7 @@ struct error_entry {
};
};
#define ERROR_TAG(tag) AVERROR_##tag, #tag
#define ERROR_TAG(tag) AVERROR_##tag, #tag
struct
error_entry
error_entries
[]
=
{
st
atic
const
st
ruct
error_entry
error_entries
[]
=
{
{
ERROR_TAG
(
BSF_NOT_FOUND
),
"Bitstream filter not found"
},
{
ERROR_TAG
(
BSF_NOT_FOUND
),
"Bitstream filter not found"
},
{
ERROR_TAG
(
BUG
),
"Internal bug, should not have happened"
},
{
ERROR_TAG
(
BUG
),
"Internal bug, should not have happened"
},
{
ERROR_TAG
(
BUG2
),
"Internal bug, should not have happened"
},
{
ERROR_TAG
(
BUG2
),
"Internal bug, should not have happened"
},
...
@@ -52,7 +52,7 @@ struct error_entry error_entries[] = {
...
@@ -52,7 +52,7 @@ struct error_entry error_entries[] = {
int
av_strerror
(
int
errnum
,
char
*
errbuf
,
size_t
errbuf_size
)
int
av_strerror
(
int
errnum
,
char
*
errbuf
,
size_t
errbuf_size
)
{
{
int
ret
=
0
,
i
;
int
ret
=
0
,
i
;
struct
error_entry
*
entry
=
NULL
;
const
struct
error_entry
*
entry
=
NULL
;
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
error_entries
);
i
++
)
{
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
error_entries
);
i
++
)
{
if
(
errnum
==
error_entries
[
i
].
num
)
{
if
(
errnum
==
error_entries
[
i
].
num
)
{
...
@@ -84,7 +84,7 @@ int main(void)
...
@@ -84,7 +84,7 @@ int main(void)
int
i
;
int
i
;
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
error_entries
);
i
++
)
{
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
error_entries
);
i
++
)
{
struct
error_entry
*
entry
=
&
error_entries
[
i
];
const
struct
error_entry
*
entry
=
&
error_entries
[
i
];
printf
(
"%d: %s [%s]
\n
"
,
entry
->
num
,
av_err2str
(
entry
->
num
),
entry
->
tag
);
printf
(
"%d: %s [%s]
\n
"
,
entry
->
num
,
av_err2str
(
entry
->
num
),
entry
->
tag
);
}
}
...
...
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