I'm working with FFMpeg for decoding Mjpeg streams. Recently I've bumped into access violation exceptions from FFMpeg, after investigating, I found that due to network packet drops, I'm passing to the FFMpeg a frame that might have "gaps" in it. The FFMpeg probably crash since it jumps to a marker payload which doesn't exist in the frame's memory.
Any idea where I can find a mjpeg structure validator? Is there any way to configure FFMpeg to perform such validations by itself?
Thanks.