changeset 8434:1e19ee0298a9 libavcodec

Simplify if/else, no speed change
author michael
date Mon, 22 Dec 2008 16:14:06 +0000
parents 79bf8321e6fa
children adab508880c6
files h264.c
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Mon Dec 22 16:10:35 2008 +0000
+++ b/h264.c	Mon Dec 22 16:14:06 2008 +0000
@@ -155,11 +155,7 @@
                 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];
             }
         }
     }