[Mesa-dev] [PATCH] st/omx/dec/h264: fix pic_order_cnt_type==2

Christian König deathsimple at vodafone.de
Thu Feb 13 04:14:01 PST 2014


From: Christian König <christian.koenig at amd.com>

Signed-off-by: Christian König <christian.koenig at amd.com>
---
 src/gallium/state_trackers/omx/vid_dec_h264.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/state_trackers/omx/vid_dec_h264.c b/src/gallium/state_trackers/omx/vid_dec_h264.c
index 20a6d9f..5f4a261 100644
--- a/src/gallium/state_trackers/omx/vid_dec_h264.c
+++ b/src/gallium/state_trackers/omx/vid_dec_h264.c
@@ -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);
-- 
1.8.3.2



More information about the mesa-dev mailing list