changeset 8008:68f0d19ff0a2 libavcodec

simplifying the code as per Michael's suggestion
author romansh
date Tue, 07 Oct 2008 15:49:45 +0000
parents 35187c18580f
children f7c7ef5e448b
files dv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 */
         }