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
288bb3da
Commit
288bb3da
authored
Dec 08, 2012
by
Janne Grunau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
svq3: make slice type value unsigned to match svq3_get_ue_golomb return type
parent
998c1ee1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
svq3.c
libavcodec/svq3.c
+4
-3
No files found.
libavcodec/svq3.c
View file @
288bb3da
...
...
@@ -750,6 +750,7 @@ static int svq3_decode_slice_header(AVCodecContext *avctx)
MpegEncContext
*
s
=
&
h
->
s
;
const
int
mb_xy
=
h
->
mb_xy
;
int
i
,
header
;
unsigned
slice_id
;
header
=
get_bits
(
&
s
->
gb
,
8
);
...
...
@@ -784,12 +785,12 @@ static int svq3_decode_slice_header(AVCodecContext *avctx)
skip_bits_long
(
&
s
->
gb
,
0
);
}
if
((
i
=
svq3_get_ue_golomb
(
&
s
->
gb
))
>=
3
)
{
av_log
(
h
->
s
.
avctx
,
AV_LOG_ERROR
,
"illegal slice type %d
\n
"
,
i
);
if
((
slice_id
=
svq3_get_ue_golomb
(
&
s
->
gb
))
>=
3
)
{
av_log
(
h
->
s
.
avctx
,
AV_LOG_ERROR
,
"illegal slice type %d
\n
"
,
slice_id
);
return
-
1
;
}
h
->
slice_type
=
golomb_to_pict_type
[
i
];
h
->
slice_type
=
golomb_to_pict_type
[
slice_id
];
if
((
header
&
0x9F
)
==
2
)
{
i
=
(
s
->
mb_num
<
64
)
?
6
:
(
1
+
av_log2
(
s
->
mb_num
-
1
));
...
...
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