# HG changeset patch # User diego # Date 1241811681 0 # Node ID 85ad5d68ec982cbd29e16ffc61c3c86640a79c9d # Parent f4a60e47193fb0cc0f9247227142e26a45e653e5 data parameter of dnxhd_encode_picture() should not be const. Fixes "dnxhdenc.c:805: warning: initialization from incompatible pointer type". patch by Daniel Verkamp, daniel drv nu diff -r f4a60e47193f -r 85ad5d68ec98 dnxhdenc.c --- a/dnxhdenc.c Fri May 08 15:14:36 2009 +0000 +++ b/dnxhdenc.c Fri May 08 19:41:21 2009 +0000 @@ -711,7 +711,7 @@ 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;