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
45db9218
Commit
45db9218
authored
Jun 09, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/jpeg2000dec: Add placeholder for PLT parsing
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
b6ee1912
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
jpeg2000dec.c
libavcodec/jpeg2000dec.c
+20
-0
No files found.
libavcodec/jpeg2000dec.c
View file @
45db9218
...
...
@@ -673,6 +673,22 @@ static uint8_t get_tlm(Jpeg2000DecoderContext *s, int n)
return
0
;
}
static
uint8_t
get_plt
(
Jpeg2000DecoderContext
*
s
,
int
n
)
{
int
i
;
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"PLT marker at pos 0x%X
\n
"
,
bytestream2_tell
(
&
s
->
g
)
-
4
);
/*Zplt =*/
bytestream2_get_byte
(
&
s
->
g
);
for
(
i
=
0
;
i
<
n
-
3
;
i
++
)
{
bytestream2_get_byte
(
&
s
->
g
);
}
return
0
;
}
static
int
init_tile
(
Jpeg2000DecoderContext
*
s
,
int
tileno
)
{
int
compno
;
...
...
@@ -1469,6 +1485,10 @@ static int jpeg2000_read_main_headers(Jpeg2000DecoderContext *s)
// Tile-part lengths
ret
=
get_tlm
(
s
,
len
);
break
;
case
JPEG2000_PLT
:
// Packet length, tile-part header
ret
=
get_plt
(
s
,
len
);
break
;
default:
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"unsupported marker 0x%.4"
PRIX16
" at pos 0x%X
\n
"
,
...
...
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