Commit 46503ff7 authored by michael's avatar michael

Simplify deblock_left/top condition for deblocking_filter=2


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21876 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 92e1e867
......@@ -996,9 +996,8 @@ static inline void xchg_mb_border(H264Context *h, uint8_t *src_y, uint8_t *src_c
}
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment