From c1621e74f1c6d26b817a36555fee6c929bb4e8d2 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Sat, 2 Jun 2018 10:28:33 -0700 Subject: [PATCH] encavcodec: set AVFrame width and height ffmpeg now requires this for video --- libhb/encavcodec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c index 8484bba6a..fa5d27031 100644 --- a/libhb/encavcodec.c +++ b/libhb/encavcodec.c @@ -557,6 +557,8 @@ static void Encode( hb_work_object_t *w, hb_buffer_t *in, AVFrame frame = {0}; int ret; + frame.width = in->f.width; + frame.height = in->f.height; frame.data[0] = in->plane[0].data; frame.data[1] = in->plane[1].data; frame.data[2] = in->plane[2].data; -- 2.40.0