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
5983d1c4
Commit
5983d1c4
authored
Jun 23, 2008
by
Vitor Sessak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify rotate_buffer()
Originally committed as revision 13914 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
cb51aef1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
ra144.c
libavcodec/ra144.c
+5
-6
No files found.
libavcodec/ra144.c
View file @
5983d1c4
...
...
@@ -97,14 +97,13 @@ static void eval_coefs(const int *refl, int *coefs)
/* rotate block */
static
void
rotate_block
(
const
int16_t
*
source
,
int16_t
*
target
,
int
offset
)
{
int
i
=
0
,
k
=
0
;
source
+=
BUFFERSIZE
-
offset
;
while
(
i
<
BLOCKSIZE
)
{
target
[
i
++
]
=
source
[
k
++
]
;
if
(
k
==
offset
)
k
=
0
;
if
(
offset
>
BLOCKSIZE
)
{
memcpy
(
target
,
source
,
BLOCKSIZE
*
sizeof
(
*
target
))
;
}
else
{
memcpy
(
target
,
source
,
offset
*
sizeof
(
*
target
));
memcpy
(
target
+
offset
,
source
,
(
BLOCKSIZE
-
offset
)
*
sizeof
(
*
target
))
;
}
}
...
...
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