proresenc: Report buffer overflow
authorChristophe Gisquet <christophe.gisquet@gmail.com>
Mon, 18 Aug 2014 14:15:22 +0000 (14:15 +0000)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 18 Aug 2014 16:51:44 +0000 (18:51 +0200)
commit58b68e4fdea22e22178e237bda950b09cc6f363a
tree3a89765528a3543f7223f07f209d3e112ae26e7a
parentb16699f2da9c1d41eff852ec3a0c81f74fd44421
proresenc: Report buffer overflow

If the allocated size, despite best efforts, is too small, exit
with the appropriate error.

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