Browse Source

Merge remote-tracking branch 'qatar/master'

* qatar/master:
  svq3: directly set pix_fmt and color_range

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer 11 years ago
parent
commit
c56d25c476
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/svq3.c

+ 2
- 1
libavcodec/svq3.c View File

@@ -888,7 +888,8 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx)
h->is_complex = 1; h->is_complex = 1;
h->sps.chroma_format_idc = 1; h->sps.chroma_format_idc = 1;
h->picture_structure = PICT_FRAME; 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_qp[0] = h->chroma_qp[1] = 4;
h->chroma_x_shift = h->chroma_y_shift = 1; h->chroma_x_shift = h->chroma_y_shift = 1;


Loading…
Cancel
Save