[FFmpeg-cvslog] audio_fifo: Drop write-only variable

Diego Biurrun git at videolan.org
Fri Mar 24 14:18:13 EET 2017


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Fri Mar 13 00:38:07 2015 +0100| [0456e684394dc5a7b98ab9ebb48396d743bf3730] | committer: Diego Biurrun

audio_fifo: Drop write-only variable

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0456e684394dc5a7b98ab9ebb48396d743bf3730
---

 libavutil/audio_fifo.c | 4 ++--
 1 file 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;



More information about the ffmpeg-cvslog mailing list