Adding timing info to sequence headers

Change-Id: I0fdb09499196e02709e067f690dff71146ee5114
diff --git a/av1/encoder/encoder.c b/av1/encoder/encoder.c
index 298ec46..a276fdc 100644
--- a/av1/encoder/encoder.c
+++ b/av1/encoder/encoder.c
@@ -1067,6 +1067,13 @@
   cm->chroma_sample_position = oxcf->chroma_sample_position;
 #endif
   cm->color_range = oxcf->color_range;
+#if CONFIG_TIMING_INFO_IN_SEQ_HEADERS
+  cm->timing_info_present = oxcf->timing_info_present;
+  cm->num_units_in_tick = oxcf->num_units_in_tick;
+  cm->time_scale = oxcf->time_scale;
+  cm->equal_picture_interval = oxcf->equal_picture_interval;
+  cm->num_ticks_per_picture = oxcf->num_ticks_per_picture;
+#endif
 
   cm->width = oxcf->width;
   cm->height = oxcf->height;
@@ -3102,6 +3109,14 @@
 
   assert(IMPLIES(cm->profile <= PROFILE_1, cm->bit_depth <= AOM_BITS_10));
 
+#if CONFIG_TIMING_INFO_IN_SEQ_HEADERS
+  cm->timing_info_present = oxcf->timing_info_present;
+  cm->num_units_in_tick = oxcf->num_units_in_tick;
+  cm->time_scale = oxcf->time_scale;
+  cm->equal_picture_interval = oxcf->equal_picture_interval;
+  cm->num_ticks_per_picture = oxcf->num_ticks_per_picture;
+#endif
+
   cpi->oxcf = *oxcf;
   x->e_mbd.bd = (int)cm->bit_depth;
   x->e_mbd.global_motion = cm->global_motion;