]> git.sesse.net Git - ffmpeg/commit
lavc/psymodel: check for av_malloc failure
authorGanesh Ajjanagadde <gajjanag@gmail.com>
Thu, 3 Mar 2016 01:14:08 +0000 (20:14 -0500)
committerGanesh Ajjanagadde <gajjanag@gmail.com>
Wed, 23 Mar 2016 15:22:22 +0000 (08:22 -0700)
commit8dbffda0f9401644467111c85090fa0e8091e08a
tree9223b1f6982971a72d730c9638b8728a3174762a
parentb098e1a4697573d5c501aceb863d89ebf1fcd5fd
lavc/psymodel: check for av_malloc failure

No idea why in commit 01ecb7172b684f1c4b3e748f95c5a9a494ca36ec the
checks were removed; this can lead to NULL pointer dereferences. This
effectively reverts that portion of the commit.

Reviewed-by: Benoit Fouet <benoit.fouet@free.fr>
Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanag@gmail.com>
libavcodec/psymodel.c