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.

How to play 5M mjpeg in appro ipnc368?

Dears,

I need play 5M mjpeg for appro ipnc368 code base, 5fps frame rate is accessable. In WISJPEGStreamSource.cpp, I modified fLastHeight and fLastWidth

/*

            fLastHeight = (fBuffer[i+5]<<5)|(fBuffer[i+6]>>3);
            fLastWidth = (fBuffer[i+7]<<5)|(fBuffer[i+8]>>3);

*/

            int tHeight  = (fBuffer[i+5] << 8) | (fBuffer[i+6]);
            int tWidth = (fBuffer[i+7] << 8) | (fBuffer[i+8]);
            int scale = 16;

            fLastHeight = tHeight /scale;
            fLastWidth = tWidth / scale;

But I can't find where to modify in my appro activeX play control client code. I browse the ffmpeg source code, it seems there are no mjpeg rtp decode code to recovery jpeg picture width and height.

Can help me?