aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vp56.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-02-01 16:16:40 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-02-01 16:16:40 +0000
commit7e5cdb5b1bcdc7ac71a426850de7ed40df420d39 (patch)
tree3f995eba689e302101c72c2f63040d3f5923e919 /libavcodec/vp56.h
parent74dc7448506a203c8981c63e6fcfadd566d9e4eb (diff)
downloadffmpeg-7e5cdb5b1bcdc7ac71a426850de7ed40df420d39.tar.gz
const
Originally committed as revision 11791 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp56.h')
-rw-r--r--libavcodec/vp56.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/vp56.h b/libavcodec/vp56.h
index 0bfd13a216..f85f947e7e 100644
--- a/libavcodec/vp56.h
+++ b/libavcodec/vp56.h
@@ -43,13 +43,13 @@ typedef void (*vp56_parse_coeff_t)(vp56_context_t *s);
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 @@ void vp56_init(AVCodecContext *avctx, int flip, int has_alpha);
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 @@ int vp56_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
*/
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;