[x265] [PATCH] Fix-2 Extra IDR issue in zonefile for live case

Mahesh Pittala mahesh at multicorewareinc.com
Mon May 8 09:47:16 UTC 2023


pushed to master and Release_3.5 branches

On Fri, May 5, 2023 at 9:27 PM Karam Singh <karam.singh at multicorewareinc.com>
wrote:

> From 15858b64b635f446b3a5567b83dd7d3cba8a8523 Mon Sep 17 00:00:00 2001
> From: Karam Singh <karam.singh at multicorewareinc.com>
> Date: Thu, 4 May 2023 16:22:03 +0530
> Subject: [PATCH] Fix-2 Extra IDR issue in zonefile for live case
>
> ---
>  source/encoder/slicetype.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/source/encoder/slicetype.cpp b/source/encoder/slicetype.cpp
> index 2cfb39620..509ebd9d6 100644
> --- a/source/encoder/slicetype.cpp
> +++ b/source/encoder/slicetype.cpp
> @@ -1958,7 +1958,7 @@ void Lookahead::slicetypeAnalyse(Lowres **frames,
> bool bKeyframe)
>              nextZoneStart += (i + 1 < m_param->rc.zonefileCount) ?
> m_param->rc.zones[i + 1].startFrame + m_param->rc.zones[i +
> 1].zoneParam->radl : m_param->totalFrames;
>              if (curZoneStart <= frames[0]->frameNum && nextZoneStart >
> frames[0]->frameNum)
>                  m_param->keyframeMax = nextZoneStart - curZoneStart;
> -            if ((i + 1 == m_param->rc.zonefileCount) && nextZoneStart ==
> 0)
> +            if (m_param->rc.zones[m_param->rc.zonefileCount -
> 1].startFrame <= frames[0]->frameNum && nextZoneStart == 0)
>                  m_param->keyframeMax = m_param->rc.zones[0].keyframeMax;
>          }
>      }
> --
> 2.36.0.windows.1
>
>
> Karam Singh
> Senior Video Codec Engineer
> MulticoreWare, India
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20230508/7f176bab/attachment.htm>


More information about the x265-devel mailing list