changeset 2367:c353719836af libavcodec

fix some type mismatches patch by (Jeff Muizelaar <muizelaar rogers com>)
author michael
date Thu, 25 Nov 2004 19:17:27 +0000
parents 270666128b07
children a7ac68734a91
files ac3enc.c mjpeg.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ac3enc.c	Wed Nov 24 22:54:16 2004 +0000
+++ b/ac3enc.c	Thu Nov 25 19:17:27 2004 +0000
@@ -1359,7 +1359,7 @@
                             unsigned char *frame, int buf_size, void *data)
 {
     AC3EncodeContext *s = avctx->priv_data;
-    short *samples = data;
+    int16_t *samples = data;
     int i, j, k, v, ch;
     int16_t input_samples[N];
     int32_t mdct_coef[NB_BLOCKS][AC3_MAX_CHANNELS][N/2];
--- a/mjpeg.c	Wed Nov 24 22:54:16 2004 +0000
+++ b/mjpeg.c	Thu Nov 25 19:17:27 2004 +0000
@@ -827,7 +827,7 @@
     int last_dc[MAX_COMPONENTS]; /* last DEQUANTIZED dc (XXX: am I right to do that ?) */
     AVFrame picture; /* picture structure */
     int linesize[MAX_COMPONENTS];                   ///< linesize << interlaced
-    uint8_t *qscale_table;
+    int8_t *qscale_table;
     DCTELEM block[64] __align8;
     ScanTable scantable;
     void (*idct_put)(uint8_t *dest/*align 8*/, int line_size, DCTELEM *block/*align 16*/);