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
afb18c55
Commit
afb18c55
authored
Dec 06, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/error_resilience: factor er_supported() check out
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
976fc591
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
error_resilience.c
libavcodec/error_resilience.c
+12
-3
No files found.
libavcodec/error_resilience.c
View file @
afb18c55
...
...
@@ -768,6 +768,17 @@ void ff_er_frame_start(ERContext *s)
s
->
error_occurred
=
0
;
}
static
int
er_supported
(
ERContext
*
s
)
{
if
(
s
->
avctx
->
hwaccel
||
s
->
avctx
->
codec
->
capabilities
&
CODEC_CAP_HWACCEL_VDPAU
||
!
s
->
cur_pic
||
s
->
cur_pic
->
field_picture
)
return
0
;
return
1
;
}
/**
* Add a slice.
* @param endx x component of the last macroblock, can be -1
...
...
@@ -859,9 +870,7 @@ void ff_er_frame_end(ERContext *s)
* though it should not crash if enabled. */
if
(
!
s
->
avctx
->
error_concealment
||
s
->
error_count
==
0
||
s
->
avctx
->
lowres
||
s
->
avctx
->
hwaccel
||
s
->
avctx
->
codec
->
capabilities
&
CODEC_CAP_HWACCEL_VDPAU
||
!
s
->
cur_pic
||
s
->
cur_pic
->
field_picture
||
!
er_supported
(
s
)
||
s
->
error_count
==
3
*
s
->
mb_width
*
(
s
->
avctx
->
skip_top
+
s
->
avctx
->
skip_bottom
))
{
return
;
...
...
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