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
b9c94e82
Commit
b9c94e82
authored
Jun 24, 2012
by
Piotr Bandurski
Committed by
Paul B Mahol
Jun 24, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xwddec: support 8bpp grayscale
parent
244682dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
xwddec.c
libavcodec/xwddec.c
+5
-2
No files found.
libavcodec/xwddec.c
View file @
b9c94e82
...
...
@@ -157,10 +157,13 @@ static int xwd_decode_frame(AVCodecContext *avctx, void *data,
switch
(
vclass
)
{
case
XWD_STATIC_GRAY
:
case
XWD_GRAY_SCALE
:
if
(
bpp
!=
1
)
if
(
bpp
!=
1
&&
bpp
!=
8
)
return
AVERROR_INVALIDDATA
;
if
(
pixdepth
==
1
)
if
(
pixdepth
==
1
)
{
avctx
->
pix_fmt
=
PIX_FMT_MONOWHITE
;
}
else
if
(
pixdepth
==
8
)
{
avctx
->
pix_fmt
=
PIX_FMT_GRAY8
;
}
break
;
case
XWD_STATIC_COLOR
:
case
XWD_PSEUDO_COLOR
:
...
...
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