aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-02-01 14:16:08 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-02-01 14:16:08 +0000
commit6ea28fc5ea185865cc50537744900397931428dd (patch)
treefdec7c1f0d7a6d2a2de3020186855647ee552781
parent0e03ed2eede1690ad1fe92ade1e948b5ec68473c (diff)
downloadffmpeg-6ea28fc5ea185865cc50537744900397931428dd.tar.gz
const
Originally committed as revision 11745 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/sunrast.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/sunrast.c b/libavcodec/sunrast.c
index cdd678201a..7e71f21ef0 100644
--- a/libavcodec/sunrast.c
+++ b/libavcodec/sunrast.c
@@ -42,12 +42,13 @@ static int sunrast_init(AVCodecContext *avctx) {
}
static int sunrast_decode_frame(AVCodecContext *avctx, void *data,
- int *data_size, uint8_t *buf, int buf_size) {
+ int *data_size, const uint8_t *buf, int buf_size) {
SUNRASTContext * const s = avctx->priv_data;
AVFrame *picture = data;
AVFrame * const p = &s->picture;
unsigned int w, h, depth, type, maptype, maplength, stride, x, y, len, alen;
- uint8_t *ptr, *bufstart = buf;
+ uint8_t *ptr;
+ const uint8_t *bufstart = buf;
if (AV_RB32(buf) != 0x59a66a95) {
av_log(avctx, AV_LOG_ERROR, "this is not sunras encoded data\n");