# HG changeset patch # User astrange # Date 1264384573 0 # Node ID 72c026446d67d4821dd12eb46263a1a78c549182 # Parent 1c8892d7a0909d7331a095b5693c37ebd5edd232 100l, correct wrong H.264+adaptive MBAFF decoding Fixes several FATE tests. diff -r 1c8892d7a090 -r 72c026446d67 h264.c --- a/h264.c Mon Jan 25 00:30:44 2010 +0000 +++ b/h264.c Mon Jan 25 01:56:13 2010 +0000 @@ -987,8 +987,8 @@ int deblock_top; int mb_xy; int top_idx = 1; - uint8_t *top_border_m1 = h->top_borders[top_idx][s->mb_x-1]; - uint8_t *top_border = h->top_borders[top_idx][s->mb_x]; + uint8_t *top_border_m1; + uint8_t *top_border; if(!simple && FRAME_MBAFF){ if(s->mb_y&1){ @@ -1012,6 +1012,9 @@ src_cb -= uvlinesize + 1; src_cr -= uvlinesize + 1; + top_border_m1 = h->top_borders[top_idx][s->mb_x-1]; + top_border = h->top_borders[top_idx][s->mb_x]; + #define XCHG(a,b,xchg)\ if (xchg) AV_SWAP64(b,a);\ else AV_COPY64(b,a);