This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MJPEG decoder has abnormal Phenomenon

Dear All:

I encoundered a stroanger issue. the result image of MJPEG decoder has unknown black block and it has no fixed form. The decoding result are different everytime . the following decoding result from the same MJPEG image.

1st decode:

2st decode:


I had previous encoundered similar issue on DM368. I adopt the method that increase 1024 bytes to size of file can fix it
PS : inBufDesc.descs[0].bufSize = prm->inDataSize+1024;

But the method can't fix this issue . I'm very confuse about the MJPEG decode function because above solution also has no sense.
can anyone know what's wrong with this , and how can i fix this.
I will be appreciate that