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
6d55506c
Commit
6d55506c
authored
Oct 13, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
truespeech: remove unneeded variable, 'consumed'
increment the 'buf' pointer instead, and consume the whole packet.
parent
b8404893
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
truespeech.c
libavcodec/truespeech.c
+3
-4
No files found.
libavcodec/truespeech.c
View file @
6d55506c
...
...
@@ -310,7 +310,6 @@ static int truespeech_decode_frame(AVCodecContext *avctx,
int
i
,
j
;
short
*
samples
=
data
;
int
consumed
=
0
;
int
iterations
,
out_size
;
iterations
=
buf_size
/
32
;
...
...
@@ -330,8 +329,8 @@ static int truespeech_decode_frame(AVCodecContext *avctx,
memset
(
samples
,
0
,
out_size
);
for
(
j
=
0
;
j
<
iterations
;
j
++
)
{
truespeech_read_frame
(
c
,
buf
+
consumed
);
consumed
+=
32
;
truespeech_read_frame
(
c
,
buf
);
buf
+=
32
;
truespeech_correlate_filter
(
c
);
truespeech_filters_merge
(
c
);
...
...
@@ -349,7 +348,7 @@ static int truespeech_decode_frame(AVCodecContext *avctx,
*
data_size
=
out_size
;
return
consumed
;
return
buf_size
;
}
AVCodec
ff_truespeech_decoder
=
{
...
...
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