Hi,
Recently I've been working on decoding a video using MJPEG. The problem I encountered is that some of the buffers (JPEG images) were syntactically correct, meaning that the header and EOI code were correct, but the decoder wasn't able to decode it. This happened randomly, without a specific pattern or order. Looking around on the internet I found this:
http://linux.omap.com/pipermail/davinci-linux-open-source/2010-December/021286.html
We implemented that solution on Diego Dompe's plugins branch for the DM365 and can confirm this behavior, we also noticed that adding less than 1024 bytes to the buffer wouldn't work as well.
Is there an explanation for this? If so, is there a "cleaner" way to solve this issue? I can provide example images for both cases.