]> granicus.if.org Git - libvpx/commitdiff
vp9: Write height and width to ivf header in SVC example encoder.
authorJerome Jiang <jianj@google.com>
Thu, 7 Feb 2019 18:38:14 +0000 (10:38 -0800)
committerJerome Jiang <jianj@google.com>
Thu, 7 Feb 2019 18:38:14 +0000 (10:38 -0800)
Write height and width of top layer to ivf header in SVC.

vpxdec Can't decode it correctly when output is y4m.

Change-Id: I9b2f1d54696611a30e252bdfd182897d191d92b5

examples/vp9_spatial_svc_encoder.c

index 92b31068442f66c0e616bf1a72647dc2fa91a855..a7d95361a22274e1fc0e6225d29b3dccddf5516a 100644 (file)
@@ -819,6 +819,8 @@ int main(int argc, const char **argv) {
 #endif
 
   info.codec_fourcc = VP9_FOURCC;
+  info.frame_width = enc_cfg.g_w;
+  info.frame_height = enc_cfg.g_h;
   info.time_base.numerator = enc_cfg.g_timebase.num;
   info.time_base.denominator = enc_cfg.g_timebase.den;