Hi all,
I am using dvsdk_4_02_00_06 and linux 2.6.32.17 on DM 368. I want to implement MJPEG decoder in my video phone application to decode the data from external USB camera. i found a sample code for JPEG deocder in dvsdk packages. It works fine for decoding one input image. To check its feasibility as MJPEG decoder i put it in a while(1) so that it will decode and write the output in a file again and again.
It works fine for 36 frames and after that I am getting a segmentation fault. I tried to find how and why its getting a segment fault but am unable to do so. I printed params value and it seems that these values are getting corrupted somehow.
e.g normally forceChromaFormat is equal to 4 but it shows some garbage value at the time of segment fault. I don't know why this is happening.
Can anyone please tell me why I am getting this problem and how can I solve it?
Also, is it proper to use this JPEG deocder as MJPEG decoder in my application? If not then is there any other way?
Thanks a lot
Thanks,
Rohan