summaryrefslogtreecommitdiffstats
path: root/libavutil/buffer.c
diff options
context:
space:
mode:
authorAndreas Cadhalpun <[email protected]>2015-06-01 00:51:30 +0200
committerMichael Niedermayer <[email protected]>2015-07-20 04:43:39 +0200
commitd6d328c2947c2864267bf913873c7db963e42327 (patch)
treeb5e95af2cf5a2c45888371bd1e1b7113ce5c80f4 /libavutil/buffer.c
parent9591f2fe94fc1e218b68d777abaffc3f3670f0a0 (diff)
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 <[email protected]> Signed-off-by: Andreas Cadhalpun <[email protected]> (cherry picked from commit 1577526b47439f33a999339efdec5d624b70e1da) Signed-off-by: Michael Niedermayer <[email protected]>
Diffstat (limited to 'libavutil/buffer.c')
0 files changed, 0 insertions, 0 deletions