# HG changeset patch # User romansh # Date 1223394585 0 # Node ID 68f0d19ff0a27e75f6d94df096229f7459e755b5 # Parent 35187c18580f7978a24e19bc206c9f786252cb1e simplifying the code as per Michael's suggestion diff -r 35187c18580f -r 68f0d19ff0a2 dv.c --- a/dv.c Tue Oct 07 08:37:20 2008 +0000 +++ b/dv.c Tue Oct 07 15:49:45 2008 +0000 @@ -492,7 +492,7 @@ mb_x = v & 0xff; mb_y = v >> 8; /* We work with 720p frames split in half. The odd half-frame (chan==2,3) is displaced :-( */ - if (s->sys->height == 720 && ((s->buf[1]>>2)&0x3) == 0) { + if (s->sys->height == 720 && !(s->buf[1]&0x0C)) { mb_y -= (mb_y>17)?18:-72; /* shifting the Y coordinate down by 72/2 macroblocks */ }