OSDN Git Service

Check return value of frame_start(), this avoids a crash if AVCodecContext::get_buffe...
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 22 Feb 2009 09:51:58 +0000 (09:51 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 22 Feb 2009 09:51:58 +0000 (09:51 +0000)
commit66e6038cf1459304ed92305b8f3e61e2f45e8fc7
tree5c02e221c4f1be027688ab93782645b064d742b7
parent67d44b84c1fd2c7e1f873741dcd6d68a3b123b3e
Check return value of frame_start(), this avoids a crash if AVCodecContext::get_buffer failed.
Not sure if returning -1 is the best possible solution but at least avoids the crash.

Originally committed as revision 17520 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h264.c