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
b05d8d4c
Commit
b05d8d4c
authored
Apr 16, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: avcodec_open2(): pass context to av_log()
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
dc11acdf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
utils.c
libavcodec/utils.c
+2
-2
No files found.
libavcodec/utils.c
View file @
b05d8d4c
...
...
@@ -1130,13 +1130,13 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code
avctx
->
strict_std_compliance
>
FF_COMPLIANCE_EXPERIMENTAL
)
{
const
char
*
codec_string
=
av_codec_is_encoder
(
codec
)
?
"encoder"
:
"decoder"
;
AVCodec
*
codec2
;
av_log
(
NULL
,
AV_LOG_ERROR
,
av_log
(
avctx
,
AV_LOG_ERROR
,
"The %s '%s' is experimental but experimental codecs are not enabled, "
"add '-strict %d' if you want to use it.
\n
"
,
codec_string
,
codec
->
name
,
FF_COMPLIANCE_EXPERIMENTAL
);
codec2
=
av_codec_is_encoder
(
codec
)
?
avcodec_find_encoder
(
codec
->
id
)
:
avcodec_find_decoder
(
codec
->
id
);
if
(
!
(
codec2
->
capabilities
&
CODEC_CAP_EXPERIMENTAL
))
av_log
(
NULL
,
AV_LOG_ERROR
,
"Alternatively use the non experimental %s '%s'.
\n
"
,
av_log
(
avctx
,
AV_LOG_ERROR
,
"Alternatively use the non experimental %s '%s'.
\n
"
,
codec_string
,
codec2
->
name
);
ret
=
AVERROR_EXPERIMENTAL
;
goto
free_and_end
;
...
...
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