[SCM] libav/experimental: 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
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:45:26 UTC 2013
The following commit has been merged in the experimental branch:
commit 10ce919561f943f3e6f85b94c124227e204c6a96
Author: Daniel Verkamp <daniel at drv.nu>
Date: Fri May 8 19:41:21 2009 +0000
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
Originally committed as revision 18773 to svn://svn.ffmpeg.org/ffmpeg/trunk
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;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list