[FFmpeg-cvslog] r11809 - trunk/libavcodec/cscd.c

reimar subversion
Sat Feb 2 15:34:43 CET 2008


Author: reimar
Date: Sat Feb  2 15:34:43 2008
New Revision: 11809

Log:
Some consts for cscd decoder helper functions


Modified:
   trunk/libavcodec/cscd.c

Modified: trunk/libavcodec/cscd.c
==============================================================================
--- trunk/libavcodec/cscd.c	(original)
+++ trunk/libavcodec/cscd.c	Sat Feb  2 15:34:43 2008
@@ -35,7 +35,7 @@ typedef struct {
     unsigned char* decomp_buf;
 } CamStudioContext;
 
-static void copy_frame_default(AVFrame *f, uint8_t *src,
+static void copy_frame_default(AVFrame *f, const uint8_t *src,
                                int linelen, int height) {
     int i;
     uint8_t *dst = f->data[0];
@@ -47,7 +47,7 @@ static void copy_frame_default(AVFrame *
     }
 }
 
-static void add_frame_default(AVFrame *f, uint8_t *src,
+static void add_frame_default(AVFrame *f, const uint8_t *src,
                               int linelen, int height) {
     int i, j;
     uint8_t *dst = f->data[0];
@@ -65,7 +65,7 @@ static void add_frame_default(AVFrame *f
 #define add_frame_16 add_frame_default
 #define add_frame_32 add_frame_default
 #else
-static void copy_frame_16(AVFrame *f, uint8_t *src,
+static void copy_frame_16(AVFrame *f, const uint8_t *src,
                           int linelen, int height) {
     int i, j;
     uint8_t *dst = f->data[0];
@@ -81,7 +81,7 @@ static void copy_frame_16(AVFrame *f, ui
     }
 }
 
-static void copy_frame_32(AVFrame *f, uint8_t *src,
+static void copy_frame_32(AVFrame *f, const uint8_t *src,
                           int linelen, int height) {
     int i, j;
     uint8_t *dst = f->data[0];
@@ -99,7 +99,7 @@ static void copy_frame_32(AVFrame *f, ui
     }
 }
 
-static void add_frame_16(AVFrame *f, uint8_t *src,
+static void add_frame_16(AVFrame *f, const uint8_t *src,
                          int linelen, int height) {
     int i, j;
     uint8_t *dst = f->data[0];
@@ -115,7 +115,7 @@ static void add_frame_16(AVFrame *f, uin
     }
 }
 
-static void add_frame_32(AVFrame *f, uint8_t *src,
+static void add_frame_32(AVFrame *f, const uint8_t *src,
                          int linelen, int height) {
     int i, j;
     uint8_t *dst = f->data[0];




More information about the ffmpeg-cvslog mailing list