mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +00:00
audio_fifo: Drop write-only variable
This commit is contained in:
parent
0574780d7a
commit
0456e68439
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user