diff options
author | John Stebbins <[email protected]> | 2018-06-02 10:28:33 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2018-06-02 10:28:33 -0700 |
commit | c1621e74f1c6d26b817a36555fee6c929bb4e8d2 (patch) | |
tree | 8747afae705302dc856d476defa299c6acaae9eb /libhb/encavcodec.c | |
parent | d17a013478548dc26660d1a184716e0d38f9dc54 (diff) |
encavcodec: set AVFrame width and height
ffmpeg now requires this for video
Diffstat (limited to 'libhb/encavcodec.c')
-rw-r--r-- | libhb/encavcodec.c | 2 |
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; |