summaryrefslogtreecommitdiffstats
path: root/libhb/muxcommon.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/muxcommon.c')
-rw-r--r--libhb/muxcommon.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/libhb/muxcommon.c b/libhb/muxcommon.c
index 88a5f35bb..d8f5bbd3d 100644
--- a/libhb/muxcommon.c
+++ b/libhb/muxcommon.c
@@ -727,15 +727,8 @@ static int check_realloc_output(struct output_buf_s * output, int size)
{
uint8_t * tmp;
- if (output->alloc == 0)
- {
- output->alloc = 1024;
- }
- else
- {
- output->alloc *= 2;
- }
- output->size = size;
+ output->alloc = size + 1024;
+ output->size = size;
tmp = realloc(output->buf, output->alloc);
if (tmp == NULL)
{