summaryrefslogtreecommitdiff
path: root/libavcodec/svq3.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-27 15:16:37 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-03-27 15:28:18 +0200
commit28a613b09b712494b8a82d00112d4e6e97a0df0a (patch)
tree53aa02ea38ded5c773c0a32f9b99162319b04c97 /libavcodec/svq3.c
parentdfacef9e735461e72a05e683da06bda5ea9c5d8e (diff)
h264: dont mess with chroma planes for grayscale h264.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/svq3.c')
-rw-r--r--libavcodec/svq3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index 8b112412cd..2e9fad04ca 100644
--- a/libavcodec/svq3.c
+++ b/libavcodec/svq3.c
@@ -823,6 +823,7 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx)
s->flags2 = avctx->flags2;
s->unrestricted_mv = 1;
h->is_complex=1;
+ h->sps.chroma_format_idc = 1;
avctx->pix_fmt = avctx->codec->pix_fmts[0];
if (!s->context_initialized) {