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
25f6cccc
Commit
25f6cccc
authored
Dec 16, 2015
by
Kieran Kunhya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
diracdec: Fix codeblock parameters reading
parent
a349a10e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
diracdec.c
libavcodec/diracdec.c
+16
-1
No files found.
libavcodec/diracdec.c
View file @
25f6cccc
...
...
@@ -1128,7 +1128,22 @@ static int dirac_unpack_idwt_params(DiracContext *s)
CHECKEDREAD
(
s
->
wavelet_depth
,
tmp
>
MAX_DWT_LEVELS
||
tmp
<
1
,
"invalid number of DWT decompositions
\n
"
)
if
(
s
->
low_delay
)
{
if
(
!
s
->
low_delay
)
{
/* Codeblock parameters (core syntax only) */
if
(
get_bits1
(
gb
))
{
for
(
i
=
0
;
i
<=
s
->
wavelet_depth
;
i
++
)
{
CHECKEDREAD
(
s
->
codeblock
[
i
].
width
,
tmp
<
1
||
tmp
>
(
s
->
avctx
->
width
>>
s
->
wavelet_depth
-
i
),
"codeblock width invalid
\n
"
)
CHECKEDREAD
(
s
->
codeblock
[
i
].
height
,
tmp
<
1
||
tmp
>
(
s
->
avctx
->
height
>>
s
->
wavelet_depth
-
i
),
"codeblock height invalid
\n
"
)
}
CHECKEDREAD
(
s
->
codeblock_mode
,
tmp
>
1
,
"unknown codeblock mode
\n
"
)
}
else
{
for
(
i
=
0
;
i
<=
s
->
wavelet_depth
;
i
++
)
s
->
codeblock
[
i
].
width
=
s
->
codeblock
[
i
].
height
=
1
;
}
}
else
{
s
->
num_x
=
svq3_get_ue_golomb
(
gb
);
s
->
num_y
=
svq3_get_ue_golomb
(
gb
);
if
(
s
->
ld_picture
)
{
...
...
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