[FFmpeg-devel] [PATCH] libopenjpegenc: recreate image data buffer after encoding frame

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Thu Oct 13 22:21:31 EEST 2016

On 13.10.2016 03:36, Michael Bradshaw wrote:
> Thanks for that (and the link back to the OpenJPEG source). Well dang. I
> think it would be better to change the patch to completely remove the image
> member from LibOpenJPEGContext, and instead just create a local image (and
> destroy it) for every call to libopenjpeg_encode_frame.

OK. Attached patch does that for openjpeg 2.
I didn't change the behavior for openjpeg 1, as reusing the image works there.

Best regards,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libopenjpegenc-stop-reusing-image-data-buffer-for-op.patch
Type: text/x-diff
Size: 4925 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20161013/07f8380d/attachment.patch>

More information about the ffmpeg-devel mailing list