diff options
author | Roman Shaposhnik <roman@shaposhnik.org> | 2008-10-07 15:49:45 +0000 |
---|---|---|
committer | Roman Shaposhnik <roman@shaposhnik.org> | 2008-10-07 15:49:45 +0000 |
commit | c9b0b38f45c111cc037f3423f3eef8041d3f87e2 (patch) | |
tree | 126fb98e05b3500a1b24c456a6eb6cab539985ca /libavcodec/dv.c | |
parent | 8f271177b0c40a4a7063994d6c8c44a8b6990f5f (diff) | |
download | ffmpeg-c9b0b38f45c111cc037f3423f3eef8041d3f87e2.tar.gz |
simplifying the code as per Michael's suggestion
Originally committed as revision 15577 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dv.c')
-rw-r--r-- | libavcodec/dv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c index 1067d73ee4..bf79caa5b4 100644 --- a/libavcodec/dv.c +++ b/libavcodec/dv.c @@ -492,7 +492,7 @@ static inline void dv_decode_video_segment(DVVideoContext *s, 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 */ } |