0
votes

So, I have a Video-decoder written in c++ whit help of ffmpeg library, non problem till when it comes to decode JPEG 2000 frame in multi threads, in this case the image is discontinuous, I set the context to have even number of threads and to process image slices:

    m->context->thread_count = m_cfgHhiThreads->value();
    m->context->thread_type = FF_THREAD_SLICE;

here is a sample image captured after decoding process (dimension is fine), this only happen if multithred is set enter image description here

Question is, why is this happening?

FFMPEG does not report any error, it actually think that the image has been correctly decoded. It is also correctly decoded the problem is in slicing.

1
Please ask a question. - szatmary
does ffmpeg command line show the problem? - rogerdpack

1 Answers

0
votes

I find out that if I setup exact so many thread as the image slice number it actually work fine.