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
521c38f1
Commit
521c38f1
authored
Feb 01, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
const
Originally committed as revision 11782 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
67d9ca0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
txd.c
libavcodec/txd.c
+5
-3
No files found.
libavcodec/txd.c
View file @
521c38f1
...
@@ -38,14 +38,16 @@ static int txd_init(AVCodecContext *avctx) {
...
@@ -38,14 +38,16 @@ static int txd_init(AVCodecContext *avctx) {
}
}
static
int
txd_decode_frame
(
AVCodecContext
*
avctx
,
void
*
data
,
int
*
data_size
,
static
int
txd_decode_frame
(
AVCodecContext
*
avctx
,
void
*
data
,
int
*
data_size
,
uint8_t
*
buf
,
int
buf_size
)
{
const
uint8_t
*
buf
,
int
buf_size
)
{
TXDContext
*
const
s
=
avctx
->
priv_data
;
TXDContext
*
const
s
=
avctx
->
priv_data
;
AVFrame
*
picture
=
data
;
AVFrame
*
picture
=
data
;
AVFrame
*
const
p
=
&
s
->
picture
;
AVFrame
*
const
p
=
&
s
->
picture
;
unsigned
int
version
,
w
,
h
,
d3d_format
,
depth
,
stride
,
mipmap_count
,
flags
;
unsigned
int
version
,
w
,
h
,
d3d_format
,
depth
,
stride
,
mipmap_count
,
flags
;
unsigned
int
y
,
v
;
unsigned
int
y
,
v
;
uint8_t
*
ptr
,
*
cur
=
buf
;
uint8_t
*
ptr
;
uint32_t
*
palette
=
(
uint32_t
*
)(
cur
+
88
),
*
pal
;
const
uint8_t
*
cur
=
buf
;
const
uint32_t
*
palette
=
(
const
uint32_t
*
)(
cur
+
88
);
uint32_t
*
pal
;
version
=
AV_RL32
(
cur
);
version
=
AV_RL32
(
cur
);
d3d_format
=
AV_RL32
(
cur
+
76
);
d3d_format
=
AV_RL32
(
cur
+
76
);
...
...
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