[Mesa-dev] [PATCH] st/omx: fix prevFrameNumOffset handling

Christian König deathsimple at vodafone.de
Wed Feb 19 09:51:03 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 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/state_trackers/omx/vid_dec_h264.c b/src/gallium/state_trackers/omx/vid_dec_h264.c
index 5f4a261..7f1c2fa 100644
--- a/src/gallium/state_trackers/omx/vid_dec_h264.c
+++ b/src/gallium/state_trackers/omx/vid_dec_h264.c
@@ -765,6 +765,8 @@ static void slice_header(vid_dec_PrivateType *priv, struct vl_rbsp *rbsp,
       else
          FrameNumOffset = priv->codec_data.h264.prevFrameNumOffset;
 
+      priv->codec_data.h264.prevFrameNumOffset = FrameNumOffset;
+
       if (sps->num_ref_frames_in_pic_order_cnt_cycle != 0)
          absFrameNum = FrameNumOffset + frame_num;
       else
@@ -814,6 +816,8 @@ static void slice_header(vid_dec_PrivateType *priv, struct vl_rbsp *rbsp,
       else
          FrameNumOffset = priv->codec_data.h264.prevFrameNumOffset;
 
+      priv->codec_data.h264.prevFrameNumOffset = FrameNumOffset;
+
       if (IdrPicFlag)
          tempPicOrderCnt = 0;
       else if (nal_ref_idc == 0)
-- 
1.8.3.2



More information about the mesa-dev mailing list