[FFmpeg-devel] [PATCH] libopenjpegenc: add NULL check for img before accessing it

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Tue Jun 2 22:46:16 CEST 2015


On 01.06.2015 15:15, Michael Niedermayer wrote:
> On Mon, Jun 01, 2015 at 12:57:25AM +0200, Andreas Cadhalpun wrote:
>> If opj_image_create fails to allocate an image it returns NULL, which
>> causes a segmentation fault at 'img->x0 = 0'.
>>
>> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
>> ---
>>  libavcodec/libopenjpegenc.c | 3 +++
>>  1 file changed, 3 insertions(+)
> 
> LGTM

Pushed.

Best regards,
Andreas



More information about the ffmpeg-devel mailing list