]> granicus.if.org Git - handbrake/commitdiff
encavcodec: set AVFrame width and height
authorJohn Stebbins <jstebbins.hb@gmail.com>
Sat, 2 Jun 2018 17:28:33 +0000 (10:28 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Sat, 2 Jun 2018 17:28:33 +0000 (10:28 -0700)
ffmpeg now requires this for video

libhb/encavcodec.c

index 8484bba6a0cc442bf704b99320361a26cc72726e..fa5d270311b36ba6c36fbb674c61fff6a49a3b17 100644 (file)
@@ -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;