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
0ba20fa5
Commit
0ba20fa5
authored
May 15, 2008
by
Vitor Sessak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless buffers
Originally committed as revision 13168 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
be4488dc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
ra144.c
libavcodec/ra144.c
+2
-6
No files found.
libavcodec/ra144.c
View file @
0ba20fa5
...
...
@@ -105,8 +105,6 @@ static void do_voice(const int *a1, int *a2)
static
void
do_output_subblock
(
Real144_internal
*
glob
,
const
unsigned
short
*
gsp
,
unsigned
int
gval
,
signed
short
*
output_buffer
,
GetBitContext
*
gb
)
{
unsigned
short
int
buffer_a
[
40
];
unsigned
short
int
buffer_b
[
40
];
unsigned
short
int
buffer_c
[
40
];
unsigned
short
int
buffer_d
[
40
];
int
e
,
f
,
g
;
int
a
=
get_bits
(
gb
,
7
);
...
...
@@ -119,9 +117,7 @@ static void do_output_subblock(Real144_internal *glob, const unsigned short *gs
rotate_block
(
glob
->
buffer_2
,
buffer_a
,
a
);
}
memcpy
(
buffer_b
,
etable1
+
b
*
BLOCKSIZE
,
BLOCKSIZE
*
2
);
e
=
((
ftable1
[
b
]
>>
4
)
*
gval
)
>>
8
;
memcpy
(
buffer_c
,
etable2
+
c
*
BLOCKSIZE
,
BLOCKSIZE
*
2
);
f
=
((
ftable2
[
c
]
>>
4
)
*
gval
)
>>
8
;
if
(
a
)
...
...
@@ -129,8 +125,8 @@ static void do_output_subblock(Real144_internal *glob, const unsigned short *gs
else
g
=
0
;
add_wav
(
d
,
a
,
g
,
e
,
f
,
buffer_a
,
buffer_b
,
buffer_c
,
buffer_d
);
add_wav
(
d
,
a
,
g
,
e
,
f
,
buffer_a
,
etable1
+
b
*
BLOCKSIZE
,
etable2
+
c
*
BLOCKSIZE
,
buffer_d
);
memmove
(
glob
->
buffer_2
,
glob
->
buffer_2
+
BLOCKSIZE
,
(
BUFFERSIZE
-
BLOCKSIZE
)
*
2
);
memcpy
(
glob
->
buffer_2
+
BUFFERSIZE
-
BLOCKSIZE
,
buffer_d
,
BLOCKSIZE
*
2
);
...
...
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