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
5ea0001f
Commit
5ea0001f
authored
Oct 22, 2011
by
Dustin Brody
Committed by
Anton Khirnov
Oct 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: translate non-flag-based er options into flag-based ef options at codec open
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
c8dad9a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
utils.c
libavcodec/utils.c
+10
-0
No files found.
libavcodec/utils.c
View file @
5ea0001f
...
@@ -576,6 +576,16 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, AVCodec *codec, AVD
...
@@ -576,6 +576,16 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, AVCodec *codec, AVD
goto
free_and_end
;
goto
free_and_end
;
}
}
avctx
->
frame_number
=
0
;
avctx
->
frame_number
=
0
;
#if FF_API_ER
av_log
(
avctx
,
AV_LOG_DEBUG
,
"err{or,}_recognition separate: %d; %d
\n
"
,
avctx
->
error_recognition
,
avctx
->
err_recognition
);
/* FF_ER_CAREFUL (==1) implies AV_EF_CRCCHECK (== 1<<1 - 1),
FF_ER_COMPLIANT (==2) implies AV_EF_{CRCCHECK,BITSTREAM} (== 1<<2 - 1), et cetera} */
avctx
->
err_recognition
|=
(
1
<<
(
avctx
->
error_recognition
-
(
avctx
->
error_recognition
>=
FF_ER_VERY_AGGRESSIVE
)))
-
1
;
av_log
(
avctx
,
AV_LOG_DEBUG
,
"err{or,}_recognition combined: %d; %d
\n
"
,
avctx
->
error_recognition
,
avctx
->
err_recognition
);
#endif
if
(
HAVE_THREADS
&&
!
avctx
->
thread_opaque
)
{
if
(
HAVE_THREADS
&&
!
avctx
->
thread_opaque
)
{
ret
=
ff_thread_init
(
avctx
);
ret
=
ff_thread_init
(
avctx
);
...
...
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