# HG changeset patch # User michael # Date 1266496663 0 # Node ID 778139a5e058000aac0b75a0ae0f853c0745e2fc # Parent 4e2d74d7bad8c86e42312c52b212ac086bd9d5c6 Simplify deblock_left/top condition for deblocking_filter=2 diff -r 4e2d74d7bad8 -r 778139a5e058 h264.c --- a/h264.c Thu Feb 18 12:13:21 2010 +0000 +++ b/h264.c Thu Feb 18 12:37:43 2010 +0000 @@ -996,9 +996,8 @@ } if(h->deblocking_filter == 2) { - mb_xy = h->mb_xy; - deblock_left = h->slice_table[mb_xy] == h->slice_table[mb_xy - 1]; - deblock_top = h->slice_table[mb_xy] == h->slice_table[h->top_mb_xy]; + deblock_left = h->left_type[0]; + deblock_top = h->top_type; } else { deblock_left = (s->mb_x > 0); deblock_top = (s->mb_y > !!MB_FIELD);