[x265] [PATCH] Fix slicetype mismatch between analysis save and load modes

Pradeep Ramachandran pradeep at multicorewareinc.com
Mon Jun 12 13:25:04 CEST 2017


On Mon, Jun 12, 2017 at 3:11 PM, Divya Manivannan <
divya at multicorewareinc.com> wrote:

> # HG changeset patch
> # User Divya Manivannan <divya at multicorewareinc.com>
> # Date 1496727799 -19800
> #      Tue Jun 06 11:13:19 2017 +0530
> # Node ID b19bc0c7b4eccfe336ecd381df25203ee6f57d05
> # Parent  cad77d34fec19c4622d42e30285f4a919f45dde9
> Fix slicetype mismatch between analysis save and load modes
>

Pushed to default


>
> diff -r cad77d34fec1 -r b19bc0c7b4ec source/encoder/encoder.cpp
> --- a/source/encoder/encoder.cpp        Fri Jun 09 14:55:05 2017 +0530
> +++ b/source/encoder/encoder.cpp        Tue Jun 06 11:13:19 2017 +0530
> @@ -850,20 +850,7 @@
>
>                  pic_out->pts = outFrame->m_pts;
>                  pic_out->dts = outFrame->m_dts;
> -
> -                switch (slice->m_sliceType)
> -                {
> -                case I_SLICE:
> -                    pic_out->sliceType = outFrame->m_lowres.bKeyframe ?
> X265_TYPE_IDR : X265_TYPE_I;
> -                    break;
> -                case P_SLICE:
> -                    pic_out->sliceType = X265_TYPE_P;
> -                    break;
> -                case B_SLICE:
> -                    pic_out->sliceType = X265_TYPE_B;
> -                    break;
> -                }
> -
> +                pic_out->sliceType = outFrame->m_lowres.sliceType;
>                  pic_out->planes[0] = recpic->m_picOrg[0];
>                  pic_out->stride[0] = (int)(recpic->m_stride *
> sizeof(pixel));
>                  if (m_param->internalCsp != X265_CSP_I400)
> @@ -2904,7 +2891,6 @@
>
>      if (analysis->sliceType == X265_TYPE_IDR || analysis->sliceType ==
> X265_TYPE_I)
>      {
> -        analysis->sliceType = X265_TYPE_I;
>          if (m_param->analysisRefineLevel < 2)
>              return;
>
>
> _______________________________________________
> 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/20170612/55195b3a/attachment.html>


More information about the x265-devel mailing list