[x265] [PATCH] Added declaration of ScalingList::MAX_MATRIX_COEF_NUM to make ld happy

Steve Borho steve at borho.org
Wed Jul 30 21:13:48 CEST 2014


On 07/30, dtyx265 at gmail.com wrote:
> # HG changeset patch
> # User David T Yuen <dtyx265 at gmail.com>
> # Date 1406743442 25200
> # Node ID 2c775165d26a19da7e02d73feb440c3b795849a2
> # Parent  c32a86702b68e24b357f0216d31c8bb9d8834db6
> Added declaration of ScalingList::MAX_MATRIX_COEF_NUM to make ld happy
> 
> diff -r c32a86702b68 -r 2c775165d26a source/encoder/entropy.cpp
> --- a/source/encoder/entropy.cpp	Wed Jul 30 15:50:03 2014 +0530
> +++ b/source/encoder/entropy.cpp	Wed Jul 30 11:04:02 2014 -0700
> @@ -2222,4 +2222,6 @@
>      { 122, 74 }, { 75, 123 }, { 124, 76 }, { 77, 125 }, { 124, 76 }, { 77, 125 }, { 126, 126 }, { 127, 127 }
>  };
>  
> +const int ScalingList::MAX_MATRIX_COEF_NUM;

this doesn't help, if it doesn't have a value.

it's defined in common/scalinglist.h as:

class ScalingList
{
    static const int MAX_MATRIX_COEF_NUM = 64;

...
};

it looks like a compiler/linker bug. What compiler are you using?

-- 
Steve Borho


More information about the x265-devel mailing list