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
6ea28fc5
Commit
6ea28fc5
authored
Feb 01, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
const
Originally committed as revision 11745 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
0e03ed2e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
sunrast.c
libavcodec/sunrast.c
+3
-2
No files found.
libavcodec/sunrast.c
View file @
6ea28fc5
...
...
@@ -42,12 +42,13 @@ static int sunrast_init(AVCodecContext *avctx) {
}
static
int
sunrast_decode_frame
(
AVCodecContext
*
avctx
,
void
*
data
,
int
*
data_size
,
uint8_t
*
buf
,
int
buf_size
)
{
int
*
data_size
,
const
uint8_t
*
buf
,
int
buf_size
)
{
SUNRASTContext
*
const
s
=
avctx
->
priv_data
;
AVFrame
*
picture
=
data
;
AVFrame
*
const
p
=
&
s
->
picture
;
unsigned
int
w
,
h
,
depth
,
type
,
maptype
,
maplength
,
stride
,
x
,
y
,
len
,
alen
;
uint8_t
*
ptr
,
*
bufstart
=
buf
;
uint8_t
*
ptr
;
const
uint8_t
*
bufstart
=
buf
;
if
(
AV_RB32
(
buf
)
!=
0x59a66a95
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"this is not sunras encoded data
\n
"
);
...
...
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