changeset 6297:1b91ce6c758c libavcodec

const
author michael
date Fri, 01 Feb 2008 16:16:40 +0000
parents 8624c08b6c54
children c8ec0c985df8
files vp5.c vp56.c vp56.h vp6.c
diffstat 4 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/vp5.c	Fri Feb 01 16:14:32 2008 +0000
+++ b/vp5.c	Fri Feb 01 16:16:40 2008 +0000
@@ -34,7 +34,7 @@
 #include "vp5data.h"
 
 
-static int vp5_parse_header(vp56_context_t *s, uint8_t *buf, int buf_size,
+static int vp5_parse_header(vp56_context_t *s, const uint8_t *buf, int buf_size,
                             int *golden_frame)
 {
     vp56_range_coder_t *c = &s->c;
--- a/vp56.c	Fri Feb 01 16:14:32 2008 +0000
+++ b/vp56.c	Fri Feb 01 16:16:40 2008 +0000
@@ -495,7 +495,7 @@
 }
 
 int vp56_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
-                      uint8_t *buf, int buf_size)
+                      const uint8_t *buf, int buf_size)
 {
     vp56_context_t *s = avctx->priv_data;
     AVFrame *const p = s->framep[VP56_FRAME_CURRENT];
--- a/vp56.h	Fri Feb 01 16:14:32 2008 +0000
+++ b/vp56.h	Fri Feb 01 16:16:40 2008 +0000
@@ -43,13 +43,13 @@
 typedef void (*vp56_default_models_init_t)(vp56_context_t *s);
 typedef void (*vp56_parse_vector_models_t)(vp56_context_t *s);
 typedef void (*vp56_parse_coeff_models_t)(vp56_context_t *s);
-typedef int (*vp56_parse_header_t)(vp56_context_t *s, uint8_t *buf,
+typedef int (*vp56_parse_header_t)(vp56_context_t *s, const uint8_t *buf,
                                    int buf_size, int *golden_frame);
 
 typedef struct {
     int high;
     int bits;
-    uint8_t *buffer;
+    const uint8_t *buffer;
     unsigned long code_word;
 } vp56_range_coder_t;
 
@@ -172,7 +172,7 @@
 int vp56_free(AVCodecContext *avctx);
 void vp56_init_dequant(vp56_context_t *s, int quantizer);
 int vp56_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
-                      uint8_t *buf, int buf_size);
+                      const uint8_t *buf, int buf_size);
 
 
 /**
@@ -180,7 +180,7 @@
  */
 
 static inline void vp56_init_range_decoder(vp56_range_coder_t *c,
-                                           uint8_t *buf, int buf_size)
+                                           const uint8_t *buf, int buf_size)
 {
     c->high = 255;
     c->bits = 8;
--- a/vp6.c	Fri Feb 01 16:14:32 2008 +0000
+++ b/vp6.c	Fri Feb 01 16:16:40 2008 +0000
@@ -41,7 +41,7 @@
 static void vp6_parse_coeff(vp56_context_t *s);
 static void vp6_parse_coeff_huffman(vp56_context_t *s);
 
-static int vp6_parse_header(vp56_context_t *s, uint8_t *buf, int buf_size,
+static int vp6_parse_header(vp56_context_t *s, const uint8_t *buf, int buf_size,
                             int *golden_frame)
 {
     vp56_range_coder_t *c = &s->c;