diff options
author | Chandu Babu Namburu <[email protected]> | 2016-11-23 20:24:34 +0530 |
---|---|---|
committer | Leo Liu <[email protected]> | 2016-11-28 15:31:51 -0500 |
commit | 02bf1bbe6e81cebe662dda12167f6d2f9823b39b (patch) | |
tree | b6853969da332830f8aa7ef53fd93f13682f59bd | |
parent | 7c277eae986ae230b36fc09fd2346f10ea8589e4 (diff) |
st/omx/dec/h264: consider POC as signed instead of unsigned
picture order count can be a negative value
Reviewed-by: Christian König <[email protected]>
-rw-r--r-- | src/gallium/state_trackers/omx/vid_dec_h264.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/omx/vid_dec_h264.c b/src/gallium/state_trackers/omx/vid_dec_h264.c index a680844a196..7ea71c1046b 100644 --- a/src/gallium/state_trackers/omx/vid_dec_h264.c +++ b/src/gallium/state_trackers/omx/vid_dec_h264.c @@ -46,7 +46,7 @@ struct dpb_list { struct list_head list; struct pipe_video_buffer *buffer; OMX_TICKS timestamp; - unsigned poc; + int poc; }; static const uint8_t Default_4x4_Intra[16] = { @@ -737,8 +737,8 @@ static void slice_header(vid_dec_PrivateType *priv, struct vl_rbsp *rbsp, if (sps->pic_order_cnt_type == 0) { unsigned log2_max_pic_order_cnt_lsb = sps->log2_max_pic_order_cnt_lsb_minus4 + 4; unsigned max_pic_order_cnt_lsb = 1 << log2_max_pic_order_cnt_lsb; - unsigned pic_order_cnt_lsb = vl_rbsp_u(rbsp, log2_max_pic_order_cnt_lsb); - unsigned pic_order_cnt_msb; + int pic_order_cnt_lsb = vl_rbsp_u(rbsp, log2_max_pic_order_cnt_lsb); + int pic_order_cnt_msb; if (pic_order_cnt_lsb != priv->codec_data.h264.pic_order_cnt_lsb) vid_dec_h264_EndFrame(priv); |