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
a7305c78
Commit
a7305c78
authored
Jan 24, 2016
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print the whitelists if entities are not found on them
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
3130556c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
utils.c
libavcodec/utils.c
+1
-1
utils.c
libavformat/utils.c
+2
-2
No files found.
libavcodec/utils.c
View file @
a7305c78
...
...
@@ -1234,7 +1234,7 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code
goto
free_and_end
;
if
(
avctx
->
codec_whitelist
&&
av_match_list
(
codec
->
name
,
avctx
->
codec_whitelist
,
','
)
<=
0
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Codec (%s) not on whitelist
\n
"
,
codec
->
name
);
av_log
(
avctx
,
AV_LOG_ERROR
,
"Codec (%s) not on whitelist
\'
%s
\'\n
"
,
codec
->
name
,
avctx
->
codec_whitelist
);
ret
=
AVERROR
(
EINVAL
);
goto
free_and_end
;
}
...
...
libavformat/utils.c
View file @
a7305c78
...
...
@@ -313,7 +313,7 @@ int av_demuxer_open(AVFormatContext *ic) {
int
err
;
if
(
ic
->
format_whitelist
&&
av_match_list
(
ic
->
iformat
->
name
,
ic
->
format_whitelist
,
','
)
<=
0
)
{
av_log
(
ic
,
AV_LOG_ERROR
,
"Format not on whitelist
\n
"
);
av_log
(
ic
,
AV_LOG_ERROR
,
"Format not on whitelist
\'
%s
\'\n
"
,
ic
->
format_whitelist
);
return
AVERROR
(
EINVAL
);
}
...
...
@@ -442,7 +442,7 @@ int avformat_open_input(AVFormatContext **ps, const char *filename,
s
->
probe_score
=
ret
;
if
(
s
->
format_whitelist
&&
av_match_list
(
s
->
iformat
->
name
,
s
->
format_whitelist
,
','
)
<=
0
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"Format not on whitelist
\n
"
);
av_log
(
s
,
AV_LOG_ERROR
,
"Format not on whitelist
\'
%s
\'\n
"
,
s
->
format_whitelist
);
ret
=
AVERROR
(
EINVAL
);
goto
fail
;
}
...
...
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