OSDN Git Service

Check return value of ff_fill_pointer in avcodec_default_get_buffer,
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Mon, 23 Feb 2009 15:18:28 +0000 (15:18 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Mon, 23 Feb 2009 15:18:28 +0000 (15:18 +0000)
commitf8c96d011e72f52513c62cec63ae76ff24e4f135
tree24366b59d4862827af16a597664a5ff671f1de2c
parentd46b2d682ff5e6a2246f334eb476af98f8cda180
Check return value of ff_fill_pointer in avcodec_default_get_buffer,
if it returns -1 we do not know how to allocate an AVFrame for that format
and must return -1 instead of returning nonsense.

Originally committed as revision 17542 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/utils.c