libopenjpegenc: stop reusing image data buffer for openjpeg 2
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Thu, 13 Oct 2016 19:16:35 +0000 (21:16 +0200)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Mon, 17 Oct 2016 15:23:55 +0000 (17:23 +0200)
commitde42af2beef7ecc3bf44d746c316de437b8be274
treeb5ab46c21fe59fad8acdabd3a348b44ece3f44ab
parentada229e66fea11e33a11df2f02dc287304842a48
libopenjpegenc: stop reusing image data buffer for openjpeg 2

openjpeg 2 sets the data pointers of the image components to NULL,
causing segfaults if the image is reused.

Reviewed-by: Michael Bradshaw <mjbshaw@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit 69c8505f3bf54f316e9dc8bec1c71dfa1febec63)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/libopenjpegenc.c