There is already similar patch by other developer. On Mon, Feb 8, 2021 at 4:11 AM Guo, Yejun <[email protected]> wrote:
> the warning message is: > warning: missing braces around initializer [-Wmissing-braces] > > Signed-off-by: Guo, Yejun <[email protected]> > --- > 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 > [email protected] > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > [email protected] with subject "unsubscribe". _______________________________________________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
