# HG changeset patch # User michael # Date 1201874115 0 # Node ID 930ac362be5aa9cdb4973a38312b34eff11ba8ea # Parent 67986191913db690d2d8695b477392f0687bac6c const diff -r 67986191913d -r 930ac362be5a nuv.c --- a/nuv.c Fri Feb 01 13:51:06 2008 +0000 +++ b/nuv.c Fri Feb 01 13:55:15 2008 +0000 @@ -69,7 +69,7 @@ * \param width width of the video frame * \param height height of the video frame */ -static void copy_frame(AVFrame *f, uint8_t *src, +static void copy_frame(AVFrame *f, const uint8_t *src, int width, int height) { AVPicture pic; avpicture_fill(&pic, src, PIX_FMT_YUV420P, width, height); @@ -80,7 +80,7 @@ * \brief extract quantization tables from codec data into our context */ static int get_quant(AVCodecContext *avctx, NuvContext *c, - uint8_t *buf, int size) { + const uint8_t *buf, int size) { int i; if (size < 2 * 64 * 4) { av_log(avctx, AV_LOG_ERROR, "insufficient rtjpeg quant data\n");