diff mjpegbdec.c @ 6271:fd69759904c7 libavcodec

const
author michael
date Fri, 01 Feb 2008 15:30:29 +0000
parents 51b4b51fa622
children 22cca5d3173a
line wrap: on
line diff
--- a/mjpegbdec.c	Fri Feb 01 15:28:46 2008 +0000
+++ b/mjpegbdec.c	Fri Feb 01 15:30:29 2008 +0000
@@ -31,10 +31,10 @@
 
 static int mjpegb_decode_frame(AVCodecContext *avctx,
                               void *data, int *data_size,
-                              uint8_t *buf, int buf_size)
+                              const uint8_t *buf, int buf_size)
 {
     MJpegDecodeContext *s = avctx->priv_data;
-    uint8_t *buf_end, *buf_ptr;
+    const uint8_t *buf_end, *buf_ptr;
     AVFrame *picture = data;
     GetBitContext hgb; /* for the header */
     uint32_t dqt_offs, dht_offs, sof_offs, sos_offs, second_field_offs;