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
20153fb8
Commit
20153fb8
authored
Jun 20, 2011
by
Ronald Bultje
Committed by
Reinhard Tartler
Jun 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
error_resilience: skip last-MV predictor step if MVs are not available.
Fixes crashes when playing broken MPEG2-TS streams.
parent
d42aaa80
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
error_resilience.c
libavcodec/error_resilience.c
+4
-0
No files found.
libavcodec/error_resilience.c
View file @
20153fb8
...
...
@@ -534,6 +534,9 @@ skip_mean_and_median:
ff_thread_await_progress
((
AVFrame
*
)
s
->
last_picture_ptr
,
mb_y
,
0
);
}
if
(
!
s
->
last_picture
.
motion_val
[
0
]
||
!
s
->
last_picture
.
ref_index
[
0
])
goto
skip_last_mv
;
prev_x
=
s
->
last_picture
.
motion_val
[
0
][
mot_index
][
0
];
prev_y
=
s
->
last_picture
.
motion_val
[
0
][
mot_index
][
1
];
prev_ref
=
s
->
last_picture
.
ref_index
[
0
][
4
*
mb_xy
];
...
...
@@ -548,6 +551,7 @@ skip_mean_and_median:
mv_predictor
[
pred_count
][
1
]
=
prev_y
;
ref
[
pred_count
]
=
prev_ref
;
pred_count
++
;
skip_last_mv
:
s
->
mv_dir
=
MV_DIR_FORWARD
;
s
->
mb_intra
=
0
;
...
...
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