[libav-bugs] [Bug 808] New: Is version of JFIF header right?

bugzilla at aruru.libav.org bugzilla at aruru.libav.org
Wed Jan 28 05:01:29 CET 2015


https://bugzilla.libav.org/show_bug.cgi?id=808

            Bug ID: 808
           Summary: Is version of JFIF header right?
           Product: Libav
           Version: 11
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: ---
         Component: libavcodec
          Assignee: bugzilla at libav.org
          Reporter: shiina at yndrd.com

I use avconv version 11.2.  with a output option like '-f image2 pic%010.jpg'.

With resultant jpg files, I met errors that shown 'unknown jfif revision number
2.01' from various application (e.g. imagej).

In writing JFIF header code at libavcodec/mjpegenc_common.c (Line 99), there is
a code below
  put_bits(p, 16, 0x0201);         /* v 1.02 */

And, in specification of jpeg file [http://www.w3.org/Graphics/JPEG/jfif3.pdf :
page 6], there is
  version (2 bytes) = X'0102'
It's case of version 1.02

I changed a code of mjpegenc_common.c to
  put_bits(p, 16, 0x0102);         /* v 1.02 */
and compiled it.

With using resultant jpeg from changed avconv, imagej doesn't show any errors.

Is version description of JFIF header at mjpegenc_common.c right? 


Thanks.

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libav.org/pipermail/libav-bugs/attachments/20150128/40530b56/attachment-0001.html>


More information about the libav-bugs mailing list