diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-27 15:16:37 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-27 15:28:18 +0200 |
commit | 28a613b09b712494b8a82d00112d4e6e97a0df0a (patch) | |
tree | 53aa02ea38ded5c773c0a32f9b99162319b04c97 /libavcodec/svq3.c | |
parent | dfacef9e735461e72a05e683da06bda5ea9c5d8e (diff) | |
download | ffmpeg-28a613b09b712494b8a82d00112d4e6e97a0df0a.tar.gz |
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.c | 1 |
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) { |