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
455fdd2f
Commit
455fdd2f
authored
Apr 17, 2009
by
Reimar Döffinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reindent xan_unpack code
Originally committed as revision 18587 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
948f60fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
xan.c
libavcodec/xan.c
+21
-21
No files found.
libavcodec/xan.c
View file @
455fdd2f
...
...
@@ -136,38 +136,38 @@ static void xan_unpack(unsigned char *dest, const unsigned char *src, int dest_l
opcode
=
*
src
++
;
if
(
opcode
<
0xe0
)
{
int
size2
,
back
;
if
(
(
opcode
&
0x80
)
==
0
)
{
int
size2
,
back
;
if
(
(
opcode
&
0x80
)
==
0
)
{
offset
=
*
src
++
;
offset
=
*
src
++
;
size
=
opcode
&
3
;
size
=
opcode
&
3
;
size2
=
((
opcode
&
0x1c
)
>>
2
)
+
3
;
back
=
((
opcode
&
0x60
)
<<
3
)
+
offset
+
1
;
size2
=
((
opcode
&
0x1c
)
>>
2
)
+
3
;
back
=
((
opcode
&
0x60
)
<<
3
)
+
offset
+
1
;
}
else
if
(
(
opcode
&
0x40
)
==
0
)
{
}
else
if
(
(
opcode
&
0x40
)
==
0
)
{
byte1
=
*
src
++
;
byte2
=
*
src
++
;
byte1
=
*
src
++
;
byte2
=
*
src
++
;
size
=
byte1
>>
6
;
size
=
byte1
>>
6
;
size2
=
(
opcode
&
0x3f
)
+
4
;
back
=
((
byte1
&
0x3f
)
<<
8
)
+
byte2
+
1
;
size2
=
(
opcode
&
0x3f
)
+
4
;
back
=
((
byte1
&
0x3f
)
<<
8
)
+
byte2
+
1
;
}
else
{
}
else
{
byte1
=
*
src
++
;
byte2
=
*
src
++
;
byte3
=
*
src
++
;
byte1
=
*
src
++
;
byte2
=
*
src
++
;
byte3
=
*
src
++
;
size
=
opcode
&
3
;
size
=
opcode
&
3
;
size2
=
byte3
+
5
+
((
opcode
&
0xc
)
<<
6
);
back
=
((
opcode
&
0x10
)
<<
12
)
+
1
+
(
byte1
<<
8
)
+
byte2
;
if
(
dest
>=
dest_end
||
size
>
dest_end
-
dest
)
return
;
size2
=
byte3
+
5
+
((
opcode
&
0xc
)
<<
6
);
back
=
((
opcode
&
0x10
)
<<
12
)
+
1
+
(
byte1
<<
8
)
+
byte2
;
if
(
dest
>=
dest_end
||
size
>
dest_end
-
dest
)
return
;
}
memcpy
(
dest
,
src
,
size
);
dest
+=
size
;
src
+=
size
;
av_memcpy_backptr
(
dest
,
back
,
size2
);
...
...
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