# HG changeset patch # User michael # Date 1201833311 0 # Node ID 5a882b31308ba354dfdd4c52bfdd2aee62bfc5e6 # Parent 1087db4b4d78846cd04efb517262364398fdd833 consts diff -r 1087db4b4d78 -r 5a882b31308b h264.c --- a/h264.c Fri Feb 01 02:26:19 2008 +0000 +++ b/h264.c Fri Feb 01 02:35:11 2008 +0000 @@ -1308,7 +1308,7 @@ * @param dst_length is the number of decoded bytes FIXME here or a decode rbsp tailing? * @returns decoded bytes, might be src+1 if no escapes */ -static uint8_t *decode_nal(H264Context *h, uint8_t *src, int *dst_length, int *consumed, int length){ +static const uint8_t *decode_nal(H264Context *h, const uint8_t *src, int *dst_length, int *consumed, int length){ int i, si, di; uint8_t *dst; int bufidx; @@ -1375,7 +1375,7 @@ * identifies the exact end of the bitstream * @return the length of the trailing, or 0 if damaged */ -static int decode_rbsp_trailing(H264Context *h, uint8_t *src){ +static int decode_rbsp_trailing(H264Context *h, const uint8_t *src){ int v= *src; int r; @@ -7361,7 +7361,7 @@ } -static int decode_nal_units(H264Context *h, uint8_t *buf, int buf_size){ +static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size){ MpegEncContext * const s = &h->s; AVCodecContext * const avctx= s->avctx; int buf_index=0; @@ -7385,7 +7385,7 @@ int consumed; int dst_length; int bit_length; - uint8_t *ptr; + const uint8_t *ptr; int i, nalsize = 0; int err; @@ -7563,7 +7563,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, - uint8_t *buf, int buf_size) + const uint8_t *buf, int buf_size) { H264Context *h = avctx->priv_data; MpegEncContext *s = &h->s; diff -r 1087db4b4d78 -r 5a882b31308b svq3.c --- a/svq3.c Fri Feb 01 02:26:19 2008 +0000 +++ b/svq3.c Fri Feb 01 02:35:11 2008 +0000 @@ -760,7 +760,7 @@ static int svq3_decode_frame (AVCodecContext *avctx, void *data, int *data_size, - uint8_t *buf, int buf_size) { + const uint8_t *buf, int buf_size) { MpegEncContext *const s = avctx->priv_data; H264Context *const h = avctx->priv_data; int m, mb_type;