# HG changeset patch # User michael # Date 1201839066 0 # Node ID bfb9d5c104a15652061dc1d461c7c7a186b59c12 # Parent 69b14049d7c832a1341551964eb854d957391706 const diff -r 69b14049d7c8 -r bfb9d5c104a1 dnxhddec.c --- a/dnxhddec.c Fri Feb 01 04:07:48 2008 +0000 +++ b/dnxhddec.c Fri Feb 01 04:11:06 2008 +0000 @@ -84,7 +84,7 @@ return 0; } -static int dnxhd_decode_header(DNXHDContext *ctx, uint8_t *buf, int buf_size, int first_field) +static int dnxhd_decode_header(DNXHDContext *ctx, const uint8_t *buf, int buf_size, int first_field) { static const uint8_t header_prefix[] = { 0x00, 0x00, 0x02, 0x80, 0x01 }; int i; @@ -263,7 +263,7 @@ return 0; } -static int dnxhd_decode_macroblocks(DNXHDContext *ctx, uint8_t *buf, int buf_size) +static int dnxhd_decode_macroblocks(DNXHDContext *ctx, const uint8_t *buf, int buf_size) { int x, y; for (y = 0; y < ctx->mb_height; y++) { @@ -281,7 +281,7 @@ } static int dnxhd_decode_frame(AVCodecContext *avctx, void *data, int *data_size, - uint8_t *buf, int buf_size) + const uint8_t *buf, int buf_size) { DNXHDContext *ctx = avctx->priv_data; AVFrame *picture = data;