Skip to content
Snippets Groups Projects
Commit 9b393cbd authored by Thomas Vander Stichele's avatar Thomas Vander Stichele
Browse files

closes bug #119105

Original commit message from CVS:
closes bug #119105
parent af42d19c
No related branches found
Loading
common @ b4a839c9
Subproject commit 50879a63c4fa8f2544d4d89a9dbfa0f5720c3266
Subproject commit b4a839c99c0bf2d4903824426ef3cc0d4b0ad992
......@@ -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 ();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment