From 184fae87cad1b5f893541f234cfad78f65a35e7d Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 31 Dec 2015 17:07:46 +0100 Subject: [PATCH] FIxes ffmpeg warnings --- record/drivers/record_ffmpeg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/record/drivers/record_ffmpeg.c b/record/drivers/record_ffmpeg.c index a44ed73a88..a3b67e0bb4 100644 --- a/record/drivers/record_ffmpeg.c +++ b/record/drivers/record_ffmpeg.c @@ -513,6 +513,10 @@ static bool ffmpeg_init_video(ffmpeg_t *handle) avpicture_fill((AVPicture*)video->conv_frame, video->conv_frame_buf, video->pix_fmt, param->out_width, param->out_height); + video->conv_frame->width = param->out_width; + video->conv_frame->height = param->out_height; + video->conv_frame->format = video->pix_fmt; + return true; }