diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-06-01 00:51:30 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-07-28 02:33:56 +0200 |
commit | 42c54f8f4dd9b43dcb9cfc484b9f5ce82d1a812e (patch) | |
tree | 4b3330f74b7656d8bfd6f13c1bd56295ed59e1a9 /libavformat/subviewer1dec.c | |
parent | fd989ff9ca4dfe3fb9b5b41737740d58b6c5a873 (diff) | |
download | ffmpeg-42c54f8f4dd9b43dcb9cfc484b9f5ce82d1a812e.tar.gz |
libopenjpegenc: add NULL check for img before accessing it
If opj_image_create fails to allocate an image it returns NULL, which
causes a segmentation fault at 'img->x0 = 0'.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit 1577526b47439f33a999339efdec5d624b70e1da)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/subviewer1dec.c')
0 files changed, 0 insertions, 0 deletions