summaryrefslogtreecommitdiff
path: root/libavcodec/nuv.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-02-01 13:55:15 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-02-01 13:55:15 +0000
commit07311324a3542645c5827ab5ba2176295ee4f61f (patch)
tree5934f5cdfef1c50c7a4f631b7cb2aa7720b629e0 /libavcodec/nuv.c
parent0ff4670a215cadbfb7b28a1f06e8ef4bd3e90507 (diff)
const
Originally committed as revision 11734 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/nuv.c')
-rw-r--r--libavcodec/nuv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/nuv.c b/libavcodec/nuv.c
index d25fa6f820..6193806fab 100644
--- a/libavcodec/nuv.c
+++ b/libavcodec/nuv.c
@@ -69,7 +69,7 @@ static const uint8_t fallback_cquant[] = {
* \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 @@ static void copy_frame(AVFrame *f, uint8_t *src,
* \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");