lavu/mem: Do not realloc in av_fast_realloc() if size == min_size.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Sat, 30 Dec 2017 13:38:33 +0000 (14:38 +0100)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Mon, 1 Jan 2018 21:30:22 +0000 (22:30 +0100)
commit21b5990da461e4f83cf53994715ed42e22cce9e0
treedd5988a0cce72b6a1a09344a0ea6cf23b2ce481f
parent1112ba012df38d486694154b03f5007341f43b24
lavu/mem: Do not realloc in av_fast_realloc() if size == min_size.

This can avoid OOM for min_size close to FFmpeg's arbitrary alloc limits.
libavutil/mem.c