summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian König <[email protected]>2014-02-13 12:50:51 +0100
committerChristian König <[email protected]>2014-02-13 18:00:44 +0100
commit0320ba9988f370957bb029e846f51d485dd606f4 (patch)
tree62a751f8c7cc50a4e73ac277fb4ddea3ffd41236
parent0c8b165366d68291e3013c7308b8b1fdd5ade2a2 (diff)
st/omx/dec/h264: fix pic_order_cnt_type==2
Signed-off-by: Christian König <[email protected]>
-rw-r--r--src/gallium/state_trackers/omx/vid_dec_h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/omx/vid_dec_h264.c b/src/gallium/state_trackers/omx/vid_dec_h264.c
index 20a6d9fdf76..5f4a261705c 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);