summaryrefslogtreecommitdiffstats
path: root/libhb/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/common.c')
-rw-r--r--libhb/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/common.c b/libhb/common.c
index aef60cc27..45f46b137 100644
--- a/libhb/common.c
+++ b/libhb/common.c
@@ -2689,8 +2689,8 @@ void hb_buffer_list_append(hb_buffer_list_t *list, hb_buffer_t *buf)
size += buf->size;
while (end != NULL && end->next != NULL)
{
- size += end->size;
end = end->next;
+ size += end->size;
count++;
}
if (list->tail == NULL)
@@ -2722,8 +2722,8 @@ void hb_buffer_list_prepend(hb_buffer_list_t *list, hb_buffer_t *buf)
size += buf->size;
while (end != NULL && end->next != NULL)
{
- size += end->size;
end = end->next;
+ size += end->size;
count++;
}
if (list->tail == NULL)