Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
521c38f1
Commit
521c38f1
authored
17 years ago
by
Michael Niedermayer
Browse files
Options
Downloads
Patches
Plain Diff
const
Originally committed as revision 11782 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
67d9ca0c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavcodec/txd.c
+5
-3
5 additions, 3 deletions
libavcodec/txd.c
with
5 additions
and
3 deletions
libavcodec/txd.c
+
5
−
3
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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment