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

bugzilla-daemon at libav.org bugzilla-daemon at libav.org
Thu Apr 30 03:04:40 CEST 2015


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

--- Comment #5 from SHIINA, Hideaki <shiina at yndrd.com> ---
Hello, Vitto.

The patch is attached below.
I cloned git from "git://git.libav.org/libav.git". Is it wrong?

------------------------

From: "SHIINA, Hideaki" <shiina at yndrd.com>
Date: Tue, 28 Apr 2015 11:05:24 +0900
Subject: [PATCH] mjpegenc: fix JFIF header

The header had a wrong version description.

Bug-Id: 808
Signed-off-by: SHIINA Hideaki <shiina at yndrd.com>
---
 libavcodec/mjpegenc_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mjpegenc_common.c b/libavcodec/mjpegenc_common.c
index b1f2c00..4df6aa7 100644
--- a/libavcodec/mjpegenc_common.c
+++ b/libavcodec/mjpegenc_common.c
@@ -98,7 +98,7 @@ static void jpeg_put_comments(AVCodecContext *avctx,
PutBitContext *p)
         put_marker(p, APP0);
         put_bits(p, 16, 16);
         avpriv_put_string(p, "JFIF", 1); /* this puts the trailing zero-byte
too */
-        put_bits(p, 16, 0x0201);         /* v 1.02 */
+        put_bits(p, 16, 0x0102);         /* v 1.02 */
         put_bits(p,  8, 0);              /* units type: 0 - aspect ratio */
         put_bits(p, 16, avctx->sample_aspect_ratio.num);
         put_bits(p, 16, avctx->sample_aspect_ratio.den);
--
1.9.1

-- 
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/20150430/3b75892b/attachment.html>


More information about the libav-bugs mailing list