]> git.sesse.net Git - ffmpeg/commit
proresenc: Realloc if buffer is too small
authorChristophe Gisquet <christophe.gisquet@gmail.com>
Mon, 18 Aug 2014 14:15:23 +0000 (14:15 +0000)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 18 Aug 2014 16:57:06 +0000 (18:57 +0200)
commit45ce880a9b3e50cfa088f111dffaf8685bd7bc6b
tree93c4d13e7eba9789d301ab3101157f4417095e4f
parent58b68e4fdea22e22178e237bda950b09cc6f363a
proresenc: Realloc if buffer is too small

The buffer allocation may be incorrect (e.g. with an alpha plane),
and currently causes the buffer to be set to NULL by init_put_bits,
causing a crash later on.

So, detect that situation, and if detected, reallocate the buffer
and ask for a sample that shows the problem.

CC: libav-stable@libav.org
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/proresenc.c