Mercurial > libavcodec.hg
changeset 7707:beabdadf79e6 libavcodec
Factoring out chan_slice / 27 into seq variable
author | romansh |
---|---|
date | Wed, 27 Aug 2008 20:21:17 +0000 |
parents | a7ebe82c6331 |
children | 5b1991f9f129 |
files | dv.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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; }