OSDN Git Service

diracdec: check return code of get_buffer_with_edge
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Fri, 4 Nov 2016 18:00:17 +0000 (19:00 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Fri, 4 Nov 2016 19:35:23 +0000 (20:35 +0100)
commitdb79dedb1ae5dd38432eee3f09155e26f3f2d95a
treea5f9587dd915e41f429dfd40500cf704adcf3bb5
parent24d20496d2e6e1df6456c5231d892269dd1fcf38
diracdec: check return code of get_buffer_with_edge

If it fails, buffers aren't allocated, causing NULL pointer dereferencing.

Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/diracdec.c