aboutsummaryrefslogtreecommitdiffhomepage
path: root/core/mp_ring.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/mp_ring.c')
-rw-r--r--core/mp_ring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/mp_ring.c b/core/mp_ring.c
index 207dc62e86..bd94870710 100644
--- a/core/mp_ring.c
+++ b/core/mp_ring.c
@@ -99,7 +99,7 @@ int mp_ring_read_cb(struct mp_ring *buffer, void *ctx, int len,
int read_len = FFMIN(len, buffered);
int read_ptr = mp_ring_get_rpos(buffer) % size;
- func(ctx, buffer->buffer + read_ptr, len);
+ func(ctx, buffer->buffer + read_ptr, read_len);
return mp_ring_drain(buffer, read_len);
}