Mercurial > libavcodec.hg
comparison dv.c @ 8008:68f0d19ff0a2 libavcodec
simplifying the code as per Michael's suggestion
author | romansh |
---|---|
date | Tue, 07 Oct 2008 15:49:45 +0000 |
parents | 3b5964de95cd |
children | f7c7ef5e448b |
comparison
equal
deleted
inserted
replaced
8007:35187c18580f | 8008:68f0d19ff0a2 |
---|---|
490 for(mb_index = 0; mb_index < 5; mb_index++) { | 490 for(mb_index = 0; mb_index < 5; mb_index++) { |
491 v = *mb_pos_ptr++; | 491 v = *mb_pos_ptr++; |
492 mb_x = v & 0xff; | 492 mb_x = v & 0xff; |
493 mb_y = v >> 8; | 493 mb_y = v >> 8; |
494 /* We work with 720p frames split in half. The odd half-frame (chan==2,3) is displaced :-( */ | 494 /* We work with 720p frames split in half. The odd half-frame (chan==2,3) is displaced :-( */ |
495 if (s->sys->height == 720 && ((s->buf[1]>>2)&0x3) == 0) { | 495 if (s->sys->height == 720 && !(s->buf[1]&0x0C)) { |
496 mb_y -= (mb_y>17)?18:-72; /* shifting the Y coordinate down by 72/2 macroblocks */ | 496 mb_y -= (mb_y>17)?18:-72; /* shifting the Y coordinate down by 72/2 macroblocks */ |
497 } | 497 } |
498 | 498 |
499 /* idct_put'ting luminance */ | 499 /* idct_put'ting luminance */ |
500 if ((s->sys->pix_fmt == PIX_FMT_YUV420P) || | 500 if ((s->sys->pix_fmt == PIX_FMT_YUV420P) || |