Browse code

remove void * used in arithmetic warnings

Originally committed as revision 7716 to svn://svn.ffmpeg.org/ffmpeg/trunk

Baptiste Coudurier authored on 2007/01/26 21:32:23
Showing 2 changed files
... ...
@@ -210,7 +210,7 @@ dts_decode_frame (AVCodecContext *avctx, void *data, int *data_size,
210 210
   static uint8_t buf[BUFFER_SIZE];
211 211
   static uint8_t * bufptr = buf;
212 212
   static uint8_t * bufpos = buf + HEADER_SIZE;
213
-
213
+  int16_t *out_samples = data;
214 214
   static int sample_rate;
215 215
   static int frame_length;
216 216
   static int flags;
... ...
@@ -273,10 +273,10 @@ dts_decode_frame (AVCodecContext *avctx, void *data, int *data_size,
273 273
                   {
274 274
                     int chans;
275 275
                     chans = channels_multi (flags);
276
-                    convert2s16_multi (dts_samples (state), data,
276
+                    convert2s16_multi (dts_samples (state), out_samples,
277 277
                                        flags & (DTS_CHANNEL_MASK | DTS_LFE));
278 278
 
279
-                    data += 256 * sizeof (int16_t) * chans;
279
+                    out_samples += 256 * chans;
280 280
                     *data_size += 256 * sizeof (int16_t) * chans;
281 281
                   }
282 282
                 }
... ...
@@ -40,7 +40,7 @@ struct dv1394_data {
40 40
     int channel;
41 41
     int format;
42 42
 
43
-    void *ring; /* Ring buffer */
43
+    uint8_t *ring; /* Ring buffer */
44 44
     int index;  /* Current frame index */
45 45
     int avail;  /* Number of frames available for reading */
46 46
     int done;   /* Number of completed frames */