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
7c57a582
Commit
7c57a582
authored
May 12, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jpeg2000dec: don't use deprecated PIX_FMT values
parent
ffba2053
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
jpeg2000dec.c
libavcodec/jpeg2000dec.c
+4
-4
No files found.
libavcodec/jpeg2000dec.c
View file @
7c57a582
...
...
@@ -1066,7 +1066,7 @@ static int jpeg2000_decode_tile(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile,
if
(
tile
->
codsty
[
0
].
mct
)
mct_decode
(
s
,
tile
);
if
(
s
->
avctx
->
pix_fmt
==
PIX_FMT_BGRA
)
// RGBA -> BGRA
if
(
s
->
avctx
->
pix_fmt
==
AV_
PIX_FMT_BGRA
)
// RGBA -> BGRA
FFSWAP
(
float
*
,
tile
->
comp
[
0
].
data
,
tile
->
comp
[
2
].
data
);
if
(
s
->
precision
<=
8
)
{
...
...
@@ -1346,8 +1346,8 @@ AVCodec ff_jpeg2000_decoder = {
.
init_static_data
=
jpeg2000_init_static_data
,
.
decode
=
jpeg2000_decode_frame
,
.
priv_class
=
&
class
,
.
pix_fmts
=
(
enum
PixelFormat
[])
{
AV_PIX_FMT_XYZ12
,
AV_PIX_FMT_GRAY8
,
-
1
},
.
pix_fmts
=
(
enum
AV
PixelFormat
[])
{
AV_PIX_FMT_XYZ12
,
AV_PIX_FMT_GRAY8
,
-
1
},
.
profiles
=
NULL_IF_CONFIG_SMALL
(
profiles
)
};
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