[FFmpeg-cvslog] r21883 - trunk/libavcodec/cavs.h

stefang subversion
Thu Feb 18 19:23:48 CET 2010


Author: stefang
Date: Thu Feb 18 19:23:48 2010
New Revision: 21883

Log:
fix intra prediction modes with inter-MB neighbors,
the old sample clips are in violation of the 2006 spec

Modified:
   trunk/libavcodec/cavs.h

Modified: trunk/libavcodec/cavs.h
==============================================================================
--- trunk/libavcodec/cavs.h	Thu Feb 18 17:27:18 2010	(r21882)
+++ trunk/libavcodec/cavs.h	Thu Feb 18 19:23:48 2010	(r21883)
@@ -248,8 +248,13 @@ static inline void modify_pred(const int
 }
 
 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) {



More information about the ffmpeg-cvslog mailing list