[SCM] libav/experimental: mjpegdec: Properly set the context colorspace info

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Aug 10 16:03:36 UTC 2014


The following commit has been merged in the experimental branch:
commit 2deb614272e6faad8802c5341971d08c7272f74d
Author: Derek Buitenhuis <derek.buitenhuis at gmail.com>
Date:   Tue Jun 24 17:38:54 2014 +0100

    mjpegdec: Properly set the context colorspace info
    
    The JPEG spec requires it to be this.
    
    Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>

diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index adcab4f..f674539 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -103,6 +103,7 @@ av_cold int ff_mjpeg_decode_init(AVCodecContext *avctx)
     s->first_picture = 1;
     s->org_height    = avctx->coded_height;
     avctx->chroma_sample_location = AVCHROMA_LOC_CENTER;
+    avctx->colorspace = AVCOL_SPC_BT470BG;
 
     build_basic_mjpeg_vlc(s);
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list