1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-10 17:41:09 +02:00

Factoring out chan_slice / 27 into seq variable

Originally committed as revision 14997 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Roman Shaposhnik 2008-08-27 20:21:17 +00:00
parent 7ae6dcb595
commit b1e3628e8c

View File

@ -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;
}