# HG changeset patch # User romansh # Date 1219868477 0 # Node ID beabdadf79e6f23fff75d7b82875e719c61ff85f # Parent a7ebe82c6331f4e5752253bc34d3ebcb3ebb66eb Factoring out chan_slice / 27 into seq variable diff -r a7ebe82c6331 -r beabdadf79e6 dv.c --- a/dv.c Wed Aug 27 20:17:01 2008 +0000 +++ b/dv.c Wed Aug 27 20:21:17 2008 +0000 @@ -965,7 +965,10 @@ /* byte offset of this channel's data */ int chan_offset = chan * s->sys->difseg_size * 150 * 80; - dv_decode_video_segment(s, &s->buf[((chan_slice/27)*6+(chan_slice/3)+chan_slice*5+7)*80 + chan_offset], + /* DIF sequence */ + int seq = chan_slice / 27; + + dv_decode_video_segment(s, &s->buf[(seq*6+(chan_slice/3)+chan_slice*5+7)*80 + chan_offset], &s->sys->video_place[slice*5]); return 0; }