[FFmpeg-cvslog] r11736 - trunk/libavcodec/pngdec.c

michael subversion
Fri Feb 1 15:00:31 CET 2008


Author: michael
Date: Fri Feb  1 15:00:31 2008
New Revision: 11736

Log:
const


Modified:
   trunk/libavcodec/pngdec.c

Modified: trunk/libavcodec/pngdec.c
==============================================================================
--- trunk/libavcodec/pngdec.c	(original)
+++ trunk/libavcodec/pngdec.c	Fri Feb  1 15:00:31 2008
@@ -31,9 +31,9 @@
 //#define DEBUG
 
 typedef struct PNGDecContext {
-    uint8_t *bytestream;
-    uint8_t *bytestream_start;
-    uint8_t *bytestream_end;
+    const uint8_t *bytestream;
+    const uint8_t *bytestream_start;
+    const uint8_t *bytestream_end;
     AVFrame picture;
 
     int state;
@@ -312,7 +312,7 @@ static int png_decode_idat(PNGDecContext
 
 static int decode_frame(AVCodecContext *avctx,
                         void *data, int *data_size,
-                        uint8_t *buf, int buf_size)
+                        const uint8_t *buf, int buf_size)
 {
     PNGDecContext * const s = avctx->priv_data;
     AVFrame *picture = data;




More information about the ffmpeg-cvslog mailing list