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
32759812
Commit
32759812
authored
Jun 09, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libopenjpegdec: make use of FF_ARRAY_ELEMS
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
695e85f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
libopenjpegdec.c
libavcodec/libopenjpegdec.c
+4
-4
No files found.
libavcodec/libopenjpegdec.c
View file @
32759812
...
...
@@ -92,19 +92,19 @@ static inline enum PixelFormat libopenjpeg_guess_pix_fmt(const opj_image_t *imag
switch
(
image
->
color_space
)
{
case
CLRSPC_SRGB
:
possible_fmts
=
libopenjpeg_rgb_pix_fmts
;
possible_fmts_nb
=
sizeof
(
libopenjpeg_rgb_pix_fmts
)
/
sizeof
(
enum
PixelFormat
);
possible_fmts_nb
=
FF_ARRAY_ELEMS
(
libopenjpeg_rgb_pix_fmts
);
break
;
case
CLRSPC_GRAY
:
possible_fmts
=
libopenjpeg_gray_pix_fmts
;
possible_fmts_nb
=
sizeof
(
libopenjpeg_gray_pix_fmts
)
/
sizeof
(
enum
PixelFormat
);
possible_fmts_nb
=
FF_ARRAY_ELEMS
(
libopenjpeg_gray_pix_fmts
);
break
;
case
CLRSPC_SYCC
:
possible_fmts
=
libopenjpeg_yuv_pix_fmts
;
possible_fmts_nb
=
sizeof
(
libopenjpeg_yuv_pix_fmts
)
/
sizeof
(
enum
PixelFormat
);
possible_fmts_nb
=
FF_ARRAY_ELEMS
(
libopenjpeg_yuv_pix_fmts
);
break
;
default
:
possible_fmts
=
libopenjpeg_all_pix_fmts
;
possible_fmts_nb
=
sizeof
(
libopenjpeg_all_pix_fmts
)
/
sizeof
(
enum
PixelFormat
);
possible_fmts_nb
=
FF_ARRAY_ELEMS
(
libopenjpeg_all_pix_fmts
);
break
;
}
...
...
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