diff options
Diffstat (limited to 'gst/isomp4/qtdemux.c')
-rw-r--r-- | gst/isomp4/qtdemux.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index 5507b1bd3..fa70e686d 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -6909,12 +6909,10 @@ qtdemux_inflate (void *z_buffer, guint z_length, guint * length) break; } - if (z.avail_out == 0) { - *length += 1024; - buffer = (guint8 *) g_realloc (buffer, *length); - z.next_out = (Bytef *) (buffer + z.total_out); - z.avail_out = 1024; - } + *length += 4096; + buffer = (guint8 *) g_realloc (buffer, *length); + z.next_out = (Bytef *) (buffer + z.total_out); + z.avail_out += 4096; } while (z.avail_in > 0); if (ret != Z_STREAM_END) { |