From 8bcfe7f7fd71e5d548c2cd96d33295ff06a5f6c8 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Thu, 20 Jan 2011 14:00:34 -0500 Subject: Set gray (128) U/V planes for chroma-less samples. Fixes two fate samples when played with -flags emu_edge. --- libavcodec/h264_cavlc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/h264_cavlc.c') diff --git a/libavcodec/h264_cavlc.c b/libavcodec/h264_cavlc.c index 55ff022..c9d28d0 100644 --- a/libavcodec/h264_cavlc.c +++ b/libavcodec/h264_cavlc.c @@ -665,6 +665,8 @@ decode_intra_mb: if(pred_mode < 0) return -1; h->chroma_pred_mode= pred_mode; + } else { + h->chroma_pred_mode = DC_128_PRED8x8; } }else if(partition_count==4){ int i, j, sub_partition_count[4], list, ref[2][4]; -- cgit v1.1