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
912e7516
Commit
912e7516
authored
Jan 03, 2012
by
Piotr Bandurski
Committed by
Carl Eugen Hoyos
Jan 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support 8bpp grayscale Sun Rasterfile images.
Fixes ticket #865.
parent
2ba34163
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sunrast.c
libavcodec/sunrast.c
+2
-2
No files found.
libavcodec/sunrast.c
View file @
912e7516
...
@@ -93,7 +93,7 @@ static int sunrast_decode_frame(AVCodecContext *avctx, void *data,
...
@@ -93,7 +93,7 @@ static int sunrast_decode_frame(AVCodecContext *avctx, void *data,
avctx
->
pix_fmt
=
PIX_FMT_MONOWHITE
;
avctx
->
pix_fmt
=
PIX_FMT_MONOWHITE
;
break
;
break
;
case
8
:
case
8
:
avctx
->
pix_fmt
=
PIX_FMT_PAL
8
;
avctx
->
pix_fmt
=
maplength
?
PIX_FMT_PAL8
:
PIX_FMT_GRAY
8
;
break
;
break
;
case
24
:
case
24
:
avctx
->
pix_fmt
=
(
type
==
RT_FORMAT_RGB
)
?
PIX_FMT_RGB24
:
PIX_FMT_BGR24
;
avctx
->
pix_fmt
=
(
type
==
RT_FORMAT_RGB
)
?
PIX_FMT_RGB24
:
PIX_FMT_BGR24
;
...
@@ -121,7 +121,7 @@ static int sunrast_decode_frame(AVCodecContext *avctx, void *data,
...
@@ -121,7 +121,7 @@ static int sunrast_decode_frame(AVCodecContext *avctx, void *data,
if
(
depth
!=
8
&&
maplength
)
{
if
(
depth
!=
8
&&
maplength
)
{
av_log
(
avctx
,
AV_LOG_WARNING
,
"useless colormap found or file is corrupted, trying to recover
\n
"
);
av_log
(
avctx
,
AV_LOG_WARNING
,
"useless colormap found or file is corrupted, trying to recover
\n
"
);
}
else
if
(
depth
==
8
)
{
}
else
if
(
maplength
)
{
unsigned
int
len
=
maplength
/
3
;
unsigned
int
len
=
maplength
/
3
;
if
(
!
maplength
)
{
if
(
!
maplength
)
{
...
...
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