<div dir="ltr"><div class="gmail_extra">As far as I know, there is no standard for Motion JPEG, and I do not know how well it is supported by libjpeg.</div><div class="gmail_extra">I've found this Motion JPEG sample publicly available: <a href="http://jjc.freeshell.org/turning_pages.html">http://jjc.freeshell.org/turning_pages.html</a></div>
<div class="gmail_extra">I've checked it against your patch, it doesn't work well. I have following error from libjpeg:</div><div class="gmail_extra"><br></div><div class="gmail_extra">[00007fe1350ba0b8] jpeg decoder error: Huffman table 0x00 was not defined<br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra">Seems to me this sample Motion JPEG doesn't have proper Huffman table identifier in JFIF (or EXIF) data.</div><div class="gmail_extra">After googling on this error string, seems like it is common problem with Motion JPEG streams from some webcams.</div>
<div class="gmail_extra"><div><br></div>-- <br>Maxim Bublis
</div></div>