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

2015-06-02 Thread Andreas Cadhalpun
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 >> --- >> libavcode

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

2015-06-01 Thread Michael Niedermayer
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 > --- > libavcodec/libopenjpegenc.c | 3 +++ > 1 file changed, 3 inserti

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

2015-05-31 Thread Andreas Cadhalpun
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 --- libavcodec/libopenjpegenc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/libopenjpegenc.c b/libavcodec/libopenjpegenc.c in