[FFmpeg-cvslog] r21470 - trunk/libavcodec/h264.h

michael subversion
Wed Jan 27 01:15:55 CET 2010


Author: michael
Date: Wed Jan 27 01:15:55 2010
New Revision: 21470

Log:
Simplify left_xy init

Modified:
   trunk/libavcodec/h264.h

Modified: trunk/libavcodec/h264.h
==============================================================================
--- trunk/libavcodec/h264.h	Wed Jan 27 00:54:11 2010	(r21469)
+++ trunk/libavcodec/h264.h	Wed Jan 27 01:15:55 2010	(r21470)
@@ -1144,16 +1144,14 @@ static int fill_filter_caches(H264Contex
         const int curr_mb_field_flag     = IS_INTERLACED(mb_type);
         if(s->mb_y&1){
             if (left_mb_field_flag != curr_mb_field_flag) {
-                left_xy[0] = mb_xy - s->mb_stride - 1;
-                left_xy[1] = mb_xy                - 1;
+                left_xy[0] -= s->mb_stride;
             }
         }else{
             if(curr_mb_field_flag){
                 top_xy      += s->mb_stride & (((s->current_picture.mb_type[top_xy    ]>>7)&1)-1);
             }
             if (left_mb_field_flag != curr_mb_field_flag) {
-                left_xy[0] = mb_xy                - 1;
-                left_xy[1] = mb_xy + s->mb_stride - 1;
+                left_xy[1] += s->mb_stride;
             }
         }
     }



More information about the ffmpeg-cvslog mailing list