summaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2015-03-13 00:38:07 +0100
committerDiego Biurrun <diego@biurrun.de>2016-10-27 12:21:46 +0200
commit0456e684394dc5a7b98ab9ebb48396d743bf3730 (patch)
tree1a4eafdf3f1d6788b036975d8ff8879eeee7f357 /libavutil
parent0574780d7a196f87ddd89d6362f4c47f3532b4c4 (diff)
downloadffmpeg-streaming-0456e684394dc5a7b98ab9ebb48396d743bf3730.zip
ffmpeg-streaming-0456e684394dc5a7b98ab9ebb48396d743bf3730.tar.gz
audio_fifo: Drop write-only variable
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/audio_fifo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/audio_fifo.c b/libavutil/audio_fifo.c
index b562537..e9244be 100644
--- a/libavutil/audio_fifo.c
+++ b/libavutil/audio_fifo.c
@@ -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;
OpenPOWER on IntegriCloud