summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2018-06-02 10:28:33 -0700
committerJohn Stebbins <[email protected]>2018-06-02 10:28:33 -0700
commitc1621e74f1c6d26b817a36555fee6c929bb4e8d2 (patch)
tree8747afae705302dc856d476defa299c6acaae9eb
parentd17a013478548dc26660d1a184716e0d38f9dc54 (diff)
encavcodec: set AVFrame width and height
ffmpeg now requires this for video
-rw-r--r--libhb/encavcodec.c2
1 files changed, 2 insertions, 0 deletions
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;