# HG changeset patch # User stefang # Date 1266517428 0 # Node ID ba1c541f7e8a0a065eca744e063b1d1c3983d7f5 # Parent 10c06a9bd3d90ed0116d86621fd6eb441af4eda1 fix intra prediction modes with inter-MB neighbors, the old sample clips are in violation of the 2006 spec diff -r 10c06a9bd3d9 -r ba1c541f7e8a cavs.h --- a/cavs.h Thu Feb 18 16:24:31 2010 +0000 +++ b/cavs.h Thu Feb 18 18:23:48 2010 +0000 @@ -248,8 +248,13 @@ } static inline void set_intra_mode_default(AVSContext *h) { - h->pred_mode_Y[3] = h->pred_mode_Y[6] = INTRA_L_LP; - h->top_pred_Y[h->mbx*2+0] = h->top_pred_Y[h->mbx*2+1] = INTRA_L_LP; + if(h->stream_revision > 0) { + h->pred_mode_Y[3] = h->pred_mode_Y[6] = NOT_AVAIL; + h->top_pred_Y[h->mbx*2+0] = h->top_pred_Y[h->mbx*2+1] = NOT_AVAIL; + } else { + h->pred_mode_Y[3] = h->pred_mode_Y[6] = INTRA_L_LP; + h->top_pred_Y[h->mbx*2+0] = h->top_pred_Y[h->mbx*2+1] = INTRA_L_LP; + } } static inline void set_mvs(cavs_vector *mv, enum cavs_block size) {