svq3: directly set pix_fmt and color_range

This commit is contained in:
Vittorio Giovara 2014-03-17 18:53:14 +01:00
parent ca80e15814
commit 3795ec6858
1 changed files with 2 additions and 1 deletions

View File

@ -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;