aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264_cavlc.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2011-01-20 14:00:34 -0500
committerRonald S. Bultje <rsbultje@gmail.com>2011-01-20 17:24:44 -0500
commit8bcfe7f7fd71e5d548c2cd96d33295ff06a5f6c8 (patch)
tree993ecba0b602039d8776a68c81193e94bf4030fc /libavcodec/h264_cavlc.c
parent30112adadf06fe2f9500e4da365eb8a58095c940 (diff)
downloadffmpeg-8bcfe7f7fd71e5d548c2cd96d33295ff06a5f6c8.tar.gz
Set gray (128) U/V planes for chroma-less samples. Fixes two fate samples
when played with -flags emu_edge.
Diffstat (limited to 'libavcodec/h264_cavlc.c')
-rw-r--r--libavcodec/h264_cavlc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/h264_cavlc.c b/libavcodec/h264_cavlc.c
index 55ff02294b..c9d28d0f9b 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];