diff options
m--------- | common | 0 | ||||
-rw-r--r-- | ext/ffmpeg/gstffmpegenc.c | 7 |
2 files changed, 4 insertions, 3 deletions
diff --git a/common b/common -Subproject 50879a63c4fa8f2544d4d89a9dbfa0f5720c326 +Subproject b4a839c99c0bf2d4903824426ef3cc0d4b0ad99 diff --git a/ext/ffmpeg/gstffmpegenc.c b/ext/ffmpeg/gstffmpegenc.c index f2237b4..de69106 100644 --- a/ext/ffmpeg/gstffmpegenc.c +++ b/ext/ffmpeg/gstffmpegenc.c @@ -411,7 +411,7 @@ gst_ffmpegenc_chain_video (GstPad *pad, GstBuffer *inbuf) } */ - avpicture_fill ((AVPicture*)&picture, data, PIX_FMT_YUV420P, ffmpegenc->in_width, ffmpegenc->in_height); + avpicture_fill ((AVPicture*)(void *)&picture, data, PIX_FMT_YUV420P, ffmpegenc->in_width, ffmpegenc->in_height); toencode = &picture; if (ffmpegenc->need_resample) { @@ -419,12 +419,13 @@ gst_ffmpegenc_chain_video (GstPad *pad, GstBuffer *inbuf) guint8 *rdata; rdata = g_malloc ((rframe_size * 3)/2); - avpicture_fill ((AVPicture*)&rpicture, rdata, PIX_FMT_YUV420P, ffmpegenc->context->width, ffmpegenc->context->height); + avpicture_fill ((AVPicture*)(void *)&rpicture, rdata, PIX_FMT_YUV420P, ffmpegenc->context->width, ffmpegenc->context->height); free_res = TRUE; toencode = &rpicture; - img_resample (ffmpegenc->resample, (AVPicture*)&rpicture, (AVPicture*)&picture); + img_resample (ffmpegenc->resample, (AVPicture*)(void *)&rpicture, + (AVPicture*)(void *)&picture); } outbuf = gst_buffer_new (); |