Skip to content
Snippets Groups Projects
Commit 1f13348f authored by Jean First's avatar Jean First Committed by Michael Niedermayer
Browse files

lavc/libopenjpegenc: move opj_setup_encoder to libopenjpeg_encode_frame


if the openjpeg parameter tcp_rates is not 0 ( using the ffmpeg compression_level option )
every 2nd image per thread is badly encoded. By moving the opj_setup_encoder function from
libopenjpeg_encode_init to libopenjpeg_encode_frame this can be prevented.

This fixes ticket #3754.

Signed-off-by: default avatarJean First <jeanfirst@gmail.com>
Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 76241c91
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment