proresenc_kostya: report buffer overflow
authorChristophe Gisquet <christophe.gisquet@gmail.com>
Mon, 11 Aug 2014 22:06:08 +0000 (22:06 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 12 Aug 2014 00:40:15 +0000 (02:40 +0200)
commit60bfa9154d0084bc8b007b984051a6bb82d9652c
treead0e43cff089617cfd522491b5cfe96f4990d66c
parent9794727ccd24c36529df1a2bb5775dcd95ed76a7
proresenc_kostya: report buffer overflow

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 52b81ff4635c077b2bc8b8d3637d933b6629d803)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/proresenc_kostya.c