[FFmpeg-devel] [PATCH] vf_pseudocolor.c: fix build warning by adding braces

Paul B Mahol onemda at gmail.com
Mon Feb 8 11:41:17 EET 2021


There is already similar patch by other developer.

On Mon, Feb 8, 2021 at 4:11 AM Guo, Yejun <yejun.guo at intel.com> wrote:

> the warning message is:
> warning: missing braces around initializer [-Wmissing-braces]
>
> Signed-off-by: Guo, Yejun <yejun.guo at intel.com>
> ---
>  libavfilter/vf_pseudocolor.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/libavfilter/vf_pseudocolor.c b/libavfilter/vf_pseudocolor.c
> index 192839342b..3416ab19a9 100644
> --- a/libavfilter/vf_pseudocolor.c
> +++ b/libavfilter/vf_pseudocolor.c
> @@ -104,8 +104,8 @@ static const Range full_range   = {0, 256};
>  static const Range spec1_range[] = {{0, 16}, {16, 236}, {236, 256}};
>  static const Range spec2_range[] = {{0, 16}, {16, 22}, {22, 226}, {226,
> 236}, {236, 256}};
>
> -static const Fill spec1_fills[] = {{0.5f, 0.f, .5f}, {-1.f, -1.f, -1.f},
> {1.f, 0.f, 0.f}};
> -static const Fill spec2_fills[] = {{0.5f, 0.f, .5f}, {0.f, 1.f, 1.f},
> {-1.f, -1.f, -1.f}, {1.f, 1.f, 0.f}, {1.f, 0.f, 0.f}};
> +static const Fill spec1_fills[] = {{{0.5f, 0.f, .5f}}, {{-1.f, -1.f,
> -1.f}}, {{1.f, 0.f, 0.f}}};
> +static const Fill spec2_fills[] = {{{0.5f, 0.f, .5f}}, {{0.f, 1.f, 1.f}},
> {{-1.f, -1.f, -1.f}}, {{1.f, 1.f, 0.f}}, {{1.f, 0.f, 0.f}}};
>
>  static const Curve curves[] =
>  {
> --
> 2.17.1
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list