[SCM] libav/experimental: svq3: directly set pix_fmt and color_range

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Aug 10 16:02:13 UTC 2014


The following commit has been merged in the experimental branch:
commit 3795ec68588986b1b88c884deaab37554dfc8203
Author: Vittorio Giovara <vittorio.giovara at gmail.com>
Date:   Mon Mar 17 18:53:14 2014 +0100

    svq3: directly set pix_fmt and color_range

diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index 265ca6d..ce42fcf 100644
--- a/libavcodec/svq3.c
+++ b/libavcodec/svq3.c
@@ -881,7 +881,8 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx)
     h->flags           = avctx->flags;
     h->is_complex      = 1;
     h->picture_structure = PICT_FRAME;
-    avctx->pix_fmt     = avctx->codec->pix_fmts[0];
+    avctx->pix_fmt     = AV_PIX_FMT_YUVJ420P;
+    avctx->color_range = AVCOL_RANGE_JPEG;
 
     h->chroma_qp[0] = h->chroma_qp[1] = 4;
     h->chroma_x_shift = h->chroma_y_shift = 1;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list