Commit c2c45fcd authored by François Cartegnie's avatar François Cartegnie 🤞

packetizer: hevc: fix poc msb on IRAP

parent eb375bf9
......@@ -1484,10 +1484,14 @@ int hevc_compute_picture_order_count( const hevc_sequence_parameter_set_t *p_sps
/* Not an IRAP with NoRaslOutputFlag == 1 */
if( !IsIRAP || !NoRaslOutputFlag )
{
pocMSB = 0;
p_ctx->prevPicOrderCnt.msb = p_ctx->prevTid0PicOrderCnt.msb;
p_ctx->prevPicOrderCnt.lsb = p_ctx->prevTid0PicOrderCnt.lsb;
}
if( IsIRAP && NoRaslOutputFlag )
{
pocMSB = 0;
}
else
{
const unsigned maxPocLSB = 1U << (p_sps->log2_max_pic_order_cnt_lsb_minus4 + 4);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment