libavutil/fifo: Fix fifo grow step
authorJan Sebechlebsky <sebechlebskyjan@gmail.com>
Fri, 3 Jun 2016 12:04:00 +0000 (14:04 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 3 Jun 2016 12:49:56 +0000 (14:49 +0200)
commit0e84eee7198d9e261f0efc5a0831abc55aa66fd6
tree118a2b56335f2b5094f069b4bea8dd9d02d9ae47
parent8b05a7ffe4d78c68cd0091aefa8b380c7c4afe7a
libavutil/fifo: Fix fifo grow step

Fifo was reallocating always to twice of the requested size.
This fixes it to reallocate to requested size, or twice of the
original size - whichever is greater.

Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavutil/fifo.c