[vlc-commits] packetizer: hevc: fix poc lsb diff
Francois Cartegnie
git at videolan.org
Thu Dec 14 14:08:49 CET 2017
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Dec 14 12:48:41 2017 +0100| [d58bee43b2cce952cacbaea02a344225a7c8902d] | committer: Francois Cartegnie
packetizer: hevc: fix poc lsb diff
(cherry picked from commit 3a4ad1465ada81e26c88425cc4d828941afc14ad)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=d58bee43b2cce952cacbaea02a344225a7c8902d
---
modules/packetizer/hevc_nal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/packetizer/hevc_nal.c b/modules/packetizer/hevc_nal.c
index cb571b4c87..6ff8166dd7 100644
--- a/modules/packetizer/hevc_nal.c
+++ b/modules/packetizer/hevc_nal.c
@@ -1496,7 +1496,7 @@ int hevc_compute_picture_order_count( const hevc_sequence_parameter_set_t *p_sps
{
const unsigned maxPocLSB = 1U << (p_sps->log2_max_pic_order_cnt_lsb_minus4 + 4);
pocMSB = p_ctx->prevPicOrderCnt.msb;
- int64_t orderDiff = p_slice->pic_order_cnt_lsb - p_ctx->prevPicOrderCnt.lsb;
+ int64_t orderDiff = (int64_t)p_slice->pic_order_cnt_lsb - p_ctx->prevPicOrderCnt.lsb;
if( orderDiff < 0 && -orderDiff >= maxPocLSB / 2 )
pocMSB += maxPocLSB;
else if( orderDiff > maxPocLSB / 2 )
More information about the vlc-commits
mailing list