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
0456e684
Commit
0456e684
authored
Mar 12, 2015
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audio_fifo: Drop write-only variable
parent
0574780d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
audio_fifo.c
libavutil/audio_fifo.c
+2
-2
No files found.
libavutil/audio_fifo.c
View file @
0456e684
...
...
@@ -138,7 +138,7 @@ int av_audio_fifo_write(AVAudioFifo *af, void **data, int nb_samples)
int
av_audio_fifo_read
(
AVAudioFifo
*
af
,
void
**
data
,
int
nb_samples
)
{
int
i
,
ret
,
size
;
int
i
,
size
;
if
(
nb_samples
<
0
)
return
AVERROR
(
EINVAL
);
...
...
@@ -148,7 +148,7 @@ int av_audio_fifo_read(AVAudioFifo *af, void **data, int nb_samples)
size
=
nb_samples
*
af
->
sample_size
;
for
(
i
=
0
;
i
<
af
->
nb_buffers
;
i
++
)
{
if
(
(
ret
=
av_fifo_generic_read
(
af
->
buf
[
i
],
data
[
i
],
size
,
NULL
)
)
<
0
)
if
(
av_fifo_generic_read
(
af
->
buf
[
i
],
data
[
i
],
size
,
NULL
)
<
0
)
return
AVERROR_BUG
;
}
af
->
nb_samples
-=
nb_samples
;
...
...
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