Simplify if/else, no speed change
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 22 Dec 2008 16:14:06 +0000 (16:14 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 22 Dec 2008 16:14:06 +0000 (16:14 +0000)
Originally committed as revision 16275 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/h264.c

index d81c4eb..40433ec 100644 (file)
@@ -155,11 +155,7 @@ static void fill_caches(H264Context *h, int mb_type, int for_deblock){
                 left_xy[1] += s->mb_stride;
                 left_block = left_block_options[3];
             } else {
-                if (bottom) {
-                    left_block = left_block_options[1];
-                } else {
-                    left_block= left_block_options[2];
-                }
+                left_block= left_block_options[2 - bottom];
             }
         }
     }