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
9f5bd895
Commit
9f5bd895
authored
17 years ago
by
Aurelien Jacobs
Browse files
Options
Downloads
Patches
Plain Diff
const
Originally committed as revision 11799 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
aa819b9b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavcodec/xan.c
+3
-5
3 additions, 5 deletions
libavcodec/xan.c
with
3 additions
and
5 deletions
libavcodec/xan.c
+
3
−
5
View file @
9f5bd895
...
...
@@ -206,7 +206,7 @@ static void xan_unpack(unsigned char *dest, const unsigned char *src, int dest_l
}
static
inline
void
xan_wc3_output_pixel_run
(
XanContext
*
s
,
unsigned
char
*
pixel_buffer
,
int
x
,
int
y
,
int
pixel_count
)
const
unsigned
char
*
pixel_buffer
,
int
x
,
int
y
,
int
pixel_count
)
{
int
stride
;
int
line_inc
;
...
...
@@ -284,8 +284,7 @@ static void xan_wc3_decode_frame(XanContext *s) {
unsigned
char
*
opcode_buffer
=
s
->
buffer1
;
int
opcode_buffer_size
=
s
->
buffer1_size
;
unsigned
char
*
imagedata_buffer
=
s
->
buffer2
;
int
imagedata_buffer_size
=
s
->
buffer2_size
;
const
unsigned
char
*
imagedata_buffer
=
s
->
buffer2
;
/* pointers to segments inside the compressed chunk */
const
unsigned
char
*
huffman_segment
;
...
...
@@ -301,8 +300,7 @@ static void xan_wc3_decode_frame(XanContext *s) {
xan_huffman_decode
(
opcode_buffer
,
huffman_segment
,
opcode_buffer_size
);
if
(
imagedata_segment
[
0
]
==
2
)
xan_unpack
(
imagedata_buffer
,
&
imagedata_segment
[
1
],
imagedata_buffer_size
);
xan_unpack
(
s
->
buffer2
,
&
imagedata_segment
[
1
],
s
->
buffer2_size
);
else
imagedata_buffer
=
&
imagedata_segment
[
1
];
...
...
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