Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libavutil/fifo.c')
-rw-r--r--libavutil/fifo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/fifo.c b/libavutil/fifo.c
index 02e0ec3f0d..09c984143f 100644
--- a/libavutil/fifo.c
+++ b/libavutil/fifo.c
@@ -115,7 +115,7 @@ int av_fifo_grow2(AVFifo *f, size_t inc)
(f->offset_w - copy) * f->elem_size);
f->offset_w -= copy;
} else
- f->offset_w = f->nb_elems + copy;
+ f->offset_w = copy == inc ? 0 : f->nb_elems + copy;
}
f->nb_elems += inc;