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
fe0ac337
Commit
fe0ac337
authored
Sep 11, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg4videodec: Fix new slice end detection for missing slices.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
3fec40b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
mpeg4videodec.c
libavcodec/mpeg4videodec.c
+10
-0
No files found.
libavcodec/mpeg4videodec.c
View file @
fe0ac337
...
...
@@ -1489,6 +1489,16 @@ end:
return
-
1
;
}
else
if
(
s
->
mb_x
+
s
->
mb_y
*
s
->
mb_width
+
1
>=
next
)
return
SLICE_END
;
if
(
s
->
pict_type
==
AV_PICTURE_TYPE_B
){
const
int
delta
=
s
->
mb_x
+
1
==
s
->
mb_width
?
2
:
1
;
ff_thread_await_progress
((
AVFrame
*
)
s
->
next_picture_ptr
,
(
s
->
mb_x
+
delta
>=
s
->
mb_width
)
?
FFMIN
(
s
->
mb_y
+
1
,
s
->
mb_height
-
1
)
:
s
->
mb_y
,
0
);
if
(
s
->
next_picture
.
f
.
mbskip_table
[
xy
+
delta
])
return
SLICE_OK
;
}
return
SLICE_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