[FFmpeg-cvslog] r14997 - trunk/libavcodec/dv.c

romansh subversion
Wed Aug 27 22:21:17 CEST 2008


Author: romansh
Date: Wed Aug 27 22:21:17 2008
New Revision: 14997

Log:
Factoring out chan_slice / 27 into seq variable


Modified:
   trunk/libavcodec/dv.c

Modified: trunk/libavcodec/dv.c
==============================================================================
--- trunk/libavcodec/dv.c	(original)
+++ trunk/libavcodec/dv.c	Wed Aug 27 22:21:17 2008
@@ -965,7 +965,10 @@ static int dv_decode_mt(AVCodecContext *
     /* 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;
 }




More information about the ffmpeg-cvslog mailing list