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
71e78e1f
Commit
71e78e1f
authored
Mar 24, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cavsdec: check stc in decode_slice_header()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
9a57a37b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
cavsdec.c
libavcodec/cavsdec.c
+4
-0
No files found.
libavcodec/cavsdec.c
View file @
71e78e1f
...
@@ -418,6 +418,10 @@ static void decode_mb_b(AVSContext *h, enum cavs_mb mb_type) {
...
@@ -418,6 +418,10 @@ static void decode_mb_b(AVSContext *h, enum cavs_mb mb_type) {
static
inline
int
decode_slice_header
(
AVSContext
*
h
,
GetBitContext
*
gb
)
{
static
inline
int
decode_slice_header
(
AVSContext
*
h
,
GetBitContext
*
gb
)
{
if
(
h
->
stc
>
0xAF
)
if
(
h
->
stc
>
0xAF
)
av_log
(
h
->
s
.
avctx
,
AV_LOG_ERROR
,
"unexpected start code 0x%02x
\n
"
,
h
->
stc
);
av_log
(
h
->
s
.
avctx
,
AV_LOG_ERROR
,
"unexpected start code 0x%02x
\n
"
,
h
->
stc
);
if
(
h
->
stc
>=
h
->
mb_height
)
return
-
1
;
h
->
mby
=
h
->
stc
;
h
->
mby
=
h
->
stc
;
h
->
mbidx
=
h
->
mby
*
h
->
mb_width
;
h
->
mbidx
=
h
->
mby
*
h
->
mb_width
;
...
...
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