summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-05-17 09:22:06 -0600
committerJohn Stebbins <[email protected]>2016-05-17 09:22:06 -0600
commite1c6d4b143cf374ed0879f7b611899a8e8c033bc (patch)
treede3236cf21ab69d8c4e119f3e53502f3752927f2 /libhb
parent141579c628e4d74fd6c7d00da0de388bdca7eabd (diff)
libhb: fix buffer list size calculation
Diffstat (limited to 'libhb')
-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)