st/omx/dec/h264: fix pic_order_cnt_type==2
authorChristian König <christian.koenig@amd.com>
Thu, 13 Feb 2014 11:50:51 +0000 (12:50 +0100)
committerChristian König <christian.koenig@amd.com>
Thu, 13 Feb 2014 17:00:44 +0000 (18:00 +0100)
Signed-off-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/omx/vid_dec_h264.c

index 20a6d9fdf766be05c0aa25f13e3a6bb497b71033..5f4a261705c15a18e86372ec7f90beacad029c88 100644 (file)
@@ -308,7 +308,7 @@ static void seq_parameter_set(vid_dec_PrivateType *priv, struct vl_rbsp *rbsp)
 
    if (sps->pic_order_cnt_type == 0)
       sps->log2_max_pic_order_cnt_lsb_minus4 = vl_rbsp_ue(rbsp);
-   else {
+   else if (sps->pic_order_cnt_type == 1) {
       sps->delta_pic_order_always_zero_flag = vl_rbsp_u(rbsp, 1);
 
       sps->offset_for_non_ref_pic = vl_rbsp_se(rbsp);