Index: SequenceParameterSet.cpp
===================================================================
RCS file: /cvs/jvt/jmvc/JMVC/H264Extension/src/lib/H264AVCCommonLib/SequenceParameterSet.cpp,v
retrieving revision 1.17
diff -u -r1.17 SequenceParameterSet.cpp
--- SequenceParameterSet.cpp	24 Mar 2011 15:25:36 -0000	1.17
+++ SequenceParameterSet.cpp	27 Jun 2014 22:56:36 -0000
@@ -507,7 +507,58 @@
   }
 
   RNOK( pcReadIf->getFlag( bTmp,                                          "SPS: vui_parameters_present_flag" ) );
-  ROT ( bTmp ); // always set to 0 in jmvc
+  //ROT ( bTmp ); // always set to 0 in jmvc
+  if (bTmp) {
+    RNOK( pcReadIf->getFlag( bTmp, "SPS_VUI: aspect_ratio_info_present_flag" ) );
+    if (bTmp){
+      RNOK  ( pcReadIf->getCode( uiTmp, 8, "SPS_VUI: aspect_ratio_idc" ) );
+      if (uiTmp == 255){
+        RNOK  ( pcReadIf->getCode( uiTmp, 16, "SPS_VUI: sar_width" ) );
+        RNOK  ( pcReadIf->getCode( uiTmp, 16, "SPS_VUI: sar_height" ) );
+      }
+    }
+    RNOK( pcReadIf->getFlag( bTmp, "SPS_VUI: overscan_info_present_flag" ) );
+    if (bTmp)
+      RNOK( pcReadIf->getFlag( bTmp, "SPS_VUI: overscan_appropriate_flag" ) );
+    RNOK( pcReadIf->getFlag( bTmp, "SPS_VUI: video_signal_type_present_flag" ) );
+    if (bTmp) {
+      RNOK  ( pcReadIf->getCode( uiTmp, 3, "SPS_VUI: video_format" ) );
+      RNOK( pcReadIf->getFlag( bTmp, "SPS_VUI: video_full_range_flag" ) );
+      RNOK( pcReadIf->getFlag( bTmp, "SPS_VUI: colour_description_present_flag" ) );
+      if (bTmp) {
+        RNOK  ( pcReadIf->getCode( uiTmp, 8, "SPS_VUI: color_primaries" ) );
+        RNOK  ( pcReadIf->getCode( uiTmp, 8, "SPS_VUI: transfer_characteristics" ) );
+        RNOK  ( pcReadIf->getCode( uiTmp, 8, "SPS_VUI: matrix_coefficients" ) );
+      }
+    }
+    RNOK( pcReadIf->getFlag( bTmp, "SPS_VUI: chroma_loc_info_present_flag" ) );
+    if(bTmp) {
+      RNOK  ( pcReadIf->getUvlc( uiTmp, "SPS_VUI: chroma_sample_loc_type_top_field" ) );
+      RNOK  ( pcReadIf->getUvlc( uiTmp, "SPS_VUI: chroma_sample_loc_type_bottom_field" ) );
+    }
+    RNOK( pcReadIf->getFlag( bTmp, "SPS_VUI: timing_info_present_flag" ) );
+    if (bTmp) {
+      RNOK  ( pcReadIf->getCode( uiTmp, 32, "SPS_VUI: num_units_in_tick" ) );
+      RNOK  ( pcReadIf->getCode( uiTmp, 32, "SPS_VUI: time_scale" ) );
+      RNOK  ( pcReadIf->getFlag( bTmp, "SPS_VUI: fixed_frame_rate_flag" ) );
+    }
+    RNOK( pcReadIf->getFlag( bTmp, "SPS_VUI: nal_hrd_parameters_present_flag" ) );
+    ROT ( bTmp ); // always set to 0 in jmvc
+    RNOK( pcReadIf->getFlag( bTmp, "SPS_VUI: vcl_hrd_parameters_present_flag" ) );
+    ROT ( bTmp ); // always set to 0 in jmvc
+    // RNOK( pcReadIf->getFlag( bTmp, "SPS: low_delay_hrd_flag" ) );
+    RNOK( pcReadIf->getFlag( bTmp, "SPS_VUI: pic_struct_present_flag" ) );
+    RNOK( pcReadIf->getFlag( bTmp, "SPS_VUI: bitstream_restriction_flag" ) );
+  if (bTmp) {
+      RNOK( pcReadIf->getFlag( bTmp, "SPS_VUI: motion_vectors_over_pic_boundaries_flag") );
+      RNOK  ( pcReadIf->getUvlc( uiTmp, "SPS_VUI: max_bytes_per_pic_denom" ) );
+      RNOK  ( pcReadIf->getUvlc( uiTmp, "SPS_VUI: max_bits_per_mb_denom" ) );
+      RNOK  ( pcReadIf->getUvlc( uiTmp, "SPS_VUI: log2_max_mv_length_horizontal" ) );
+      RNOK  ( pcReadIf->getUvlc( uiTmp, "SPS_VUI: log2_max_mv_length_vertical" ) );
+      RNOK  ( pcReadIf->getUvlc( uiTmp, "SPS_VUI: max_num_reorder_frames" ) );
+      RNOK  ( pcReadIf->getUvlc( uiTmp, "SPS_VUI: max_dec_frame_buffering" ) );
+    }
+  }
 
   if (eNalUnitType == NAL_UNIT_SUBSET_SPS )
   {
