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
c64cf2a3
Commit
c64cf2a3
authored
Nov 14, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aasc: cosmetics, reformat
parent
808b2227
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
aasc.c
libavcodec/aasc.c
+7
-7
No files found.
libavcodec/aasc.c
View file @
c64cf2a3
...
@@ -54,8 +54,8 @@ static int aasc_decode_frame(AVCodecContext *avctx,
...
@@ -54,8 +54,8 @@ static int aasc_decode_frame(AVCodecContext *avctx,
AVPacket
*
avpkt
)
AVPacket
*
avpkt
)
{
{
const
uint8_t
*
buf
=
avpkt
->
data
;
const
uint8_t
*
buf
=
avpkt
->
data
;
int
buf_size
=
avpkt
->
size
;
int
buf_size
=
avpkt
->
size
;
AascContext
*
s
=
avctx
->
priv_data
;
AascContext
*
s
=
avctx
->
priv_data
;
int
compr
,
i
,
stride
;
int
compr
,
i
,
stride
;
s
->
frame
.
reference
=
1
;
s
->
frame
.
reference
=
1
;
...
@@ -65,14 +65,14 @@ static int aasc_decode_frame(AVCodecContext *avctx,
...
@@ -65,14 +65,14 @@ static int aasc_decode_frame(AVCodecContext *avctx,
return
-
1
;
return
-
1
;
}
}
compr
=
AV_RL32
(
buf
);
compr
=
AV_RL32
(
buf
);
buf
+=
4
;
buf
+=
4
;
buf_size
-=
4
;
buf_size
-=
4
;
switch
(
compr
)
{
switch
(
compr
)
{
case
0
:
case
0
:
stride
=
(
avctx
->
width
*
3
+
3
)
&
~
3
;
stride
=
(
avctx
->
width
*
3
+
3
)
&
~
3
;
for
(
i
=
avctx
->
height
-
1
;
i
>=
0
;
i
--
)
{
for
(
i
=
avctx
->
height
-
1
;
i
>=
0
;
i
--
)
{
memcpy
(
s
->
frame
.
data
[
0
]
+
i
*
s
->
frame
.
linesize
[
0
],
buf
,
avctx
->
width
*
3
);
memcpy
(
s
->
frame
.
data
[
0
]
+
i
*
s
->
frame
.
linesize
[
0
],
buf
,
avctx
->
width
*
3
);
buf
+=
stride
;
buf
+=
stride
;
}
}
break
;
break
;
...
...
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