changeset 6274:458c2f742eef libavcodec

const
author michael
date Fri, 01 Feb 2008 15:39:25 +0000
parents 39cd8d3d5b9e
children 2ce4b47513a0
files qpeg.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/qpeg.c	Fri Feb 01 15:37:24 2008 +0000
+++ b/qpeg.c	Fri Feb 01 15:39:25 2008 +0000
@@ -33,7 +33,7 @@
     uint8_t *refdata;
 } QpegContext;
 
-static void qpeg_decode_intra(uint8_t *src, uint8_t *dst, int size,
+static void qpeg_decode_intra(const uint8_t *src, uint8_t *dst, int size,
                             int stride, int width, int height)
 {
     int i;
@@ -115,7 +115,7 @@
  { 0x00, 0x20, 0x18, 0x08, 0x18, 0x10, 0x20, 0x10, 0x08, 0x10, 0x20, 0x20, 0x08, 0x10, 0x18, 0x04};
 
 /* Decodes delta frames */
-static void qpeg_decode_inter(uint8_t *src, uint8_t *dst, int size,
+static void qpeg_decode_inter(const uint8_t *src, uint8_t *dst, int size,
                             int stride, int width, int height,
                             int delta, uint8_t *ctable, uint8_t *refdata)
 {
@@ -249,7 +249,7 @@
 
 static int decode_frame(AVCodecContext *avctx,
                         void *data, int *data_size,
-                        uint8_t *buf, int buf_size)
+                        const uint8_t *buf, int buf_size)
 {
     QpegContext * const a = avctx->priv_data;
     AVFrame * const p= (AVFrame*)&a->pic;