summaryrefslogtreecommitdiff
path: root/libavcodec/svq3.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-03-17 18:53:14 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-03-18 08:21:29 +0100
commit3795ec68588986b1b88c884deaab37554dfc8203 (patch)
tree1ace99e6084e52ded489138aa59b73fb8363922b /libavcodec/svq3.c
parentca80e15814b77efe8d0ff5a5b0220754bb6c4065 (diff)
svq3: directly set pix_fmt and color_range
Diffstat (limited to 'libavcodec/svq3.c')
-rw-r--r--libavcodec/svq3.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index 265ca6d94e..ce42fcf8d3 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;