[FFmpeg-devel] [PATCH] Warning fix: data parameter of AVCodec.encode is not const
Daniel Verkamp
daniel
Wed May 6 21:59:52 CEST 2009
-------------- next part --------------
>From bef3f9321ee8b6e82184d827ff8d280366b2ae57 Mon Sep 17 00:00:00 2001
From: Daniel Verkamp <daniel at drv.nu>
Date: Wed, 6 May 2009 15:02:27 -0500
Subject: [PATCH] Warning fix: data parameter of AVCodec.encode is not const
Fixes "libavcodec/dnxhdenc.c:805: warning: initialization from
incompatible pointer type"
---
libavcodec/dnxhdenc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c
index f206b72..54ccec4 100644
--- a/libavcodec/dnxhdenc.c
+++ b/libavcodec/dnxhdenc.c
@@ -711,7 +711,7 @@ static void dnxhd_load_picture(DNXHDEncContext *ctx, const AVFrame *frame)
ctx->cur_field = frame->interlaced_frame && !frame->top_field_first;
}
-static int dnxhd_encode_picture(AVCodecContext *avctx, unsigned char *buf, int buf_size, const void *data)
+static int dnxhd_encode_picture(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data)
{
DNXHDEncContext *ctx = avctx->priv_data;
int first_field = 1;
--
1.6.2.3
More information about the ffmpeg-devel
mailing list