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
eaa86850
Commit
eaa86850
authored
Jun 12, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/jpeg2000dec: Do not abort if prc is outside limits
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
8e91d965
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
jpeg2000dec.c
libavcodec/jpeg2000dec.c
+5
-2
No files found.
libavcodec/jpeg2000dec.c
View file @
eaa86850
...
...
@@ -989,8 +989,11 @@ static int jpeg2000_decode_packets(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile
prcy
=
ff_jpeg2000_ceildivpow2
(
y
,
reducedresno
)
>>
rlevel
->
log2_prec_height
;
precno
=
prcx
+
rlevel
->
num_precincts_x
*
prcy
;
if
(
prcx
>=
rlevel
->
num_precincts_x
||
prcy
>=
rlevel
->
num_precincts_y
)
return
AVERROR_PATCHWELCOME
;
if
(
prcx
>=
rlevel
->
num_precincts_x
||
prcy
>=
rlevel
->
num_precincts_y
)
{
av_log
(
s
->
avctx
,
AV_LOG_WARNING
,
"prc %d %d outside limits %d %d
\n
"
,
prcx
,
prcy
,
rlevel
->
num_precincts_x
,
rlevel
->
num_precincts_y
);
continue
;
}
for
(
layno
=
0
;
layno
<
tile
->
codsty
[
0
].
nlayers
;
layno
++
)
{
if
((
ret
=
jpeg2000_decode_packet
(
s
,
tile
,
&
tp_index
,
codsty
,
rlevel
,
...
...
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