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
1f2f031c
Commit
1f2f031c
authored
May 13, 2012
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set bits_per_raw_sample when decoding libopenjpeg images.
Reviewed-by: Michael Bradshaw
parent
1337c6cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
libopenjpegdec.c
libavcodec/libopenjpegdec.c
+4
-0
No files found.
libavcodec/libopenjpegdec.c
View file @
1f2f031c
...
...
@@ -229,6 +229,7 @@ static int libopenjpeg_decode_frame(AVCodecContext *avctx,
int
width
,
height
,
ret
=
-
1
;
int
pixel_size
=
0
;
int
ispacked
=
0
;
int
i
;
*
data_size
=
0
;
...
...
@@ -291,6 +292,9 @@ static int libopenjpeg_decode_frame(AVCodecContext *avctx,
av_log
(
avctx
,
AV_LOG_ERROR
,
"Unable to determine pixel format
\n
"
);
goto
done
;
}
for
(
i
=
0
;
i
<
image
->
numcomps
;
i
++
)
if
(
image
->
comps
[
i
].
prec
>
avctx
->
bits_per_raw_sample
)
avctx
->
bits_per_raw_sample
=
image
->
comps
[
i
].
prec
;
if
(
picture
->
data
[
0
])
ff_thread_release_buffer
(
avctx
,
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