diff options
author | Roman Shaposhnik <roman@shaposhnik.org> | 2008-08-27 20:21:17 +0000 |
---|---|---|
committer | Roman Shaposhnik <roman@shaposhnik.org> | 2008-08-27 20:21:17 +0000 |
commit | b1e3628e8c775cfe5a2440270e03a963e839e2a7 (patch) | |
tree | 4c8f78e8c0170e3a959955545ef44233bb0a7c95 | |
parent | 7ae6dcb595b6bb7c83ac312d8759b6862b974fbb (diff) | |
download | ffmpeg-b1e3628e8c775cfe5a2440270e03a963e839e2a7.tar.gz |
Factoring out chan_slice / 27 into seq variable
Originally committed as revision 14997 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/dv.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c index 2322e92fc4..b7dde76bed 100644 --- a/libavcodec/dv.c +++ b/libavcodec/dv.c @@ -965,7 +965,10 @@ static int dv_decode_mt(AVCodecContext *avctx, void* sl) /* 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; } |