@@ -67,7 +67,7 @@ static const AVOption swscale_options[] = {
67
67
{ "dst_v_chr_pos" , "destination vertical chroma position in luma grid/256" , OFFSET (dst_v_chr_pos ), AV_OPT_TYPE_INT , { .i64 = -513 }, -513 , 1024 , VE },
68
68
{ "dst_h_chr_pos" , "destination horizontal chroma position in luma grid/256" , OFFSET (dst_h_chr_pos ), AV_OPT_TYPE_INT , { .i64 = -513 }, -513 , 1024 , VE },
69
69
70
- { "sws_dither" , "set dithering algorithm" , OFFSET (dither ), AV_OPT_TYPE_INT , { .i64 = SWS_DITHER_AUTO }, 0 , NB_SWS_DITHER , VE , .unit = "sws_dither" },
70
+ { "sws_dither" , "set dithering algorithm" , OFFSET (dither ), AV_OPT_TYPE_INT , { .i64 = SWS_DITHER_AUTO }, 0 , SWS_DITHER_NB , VE , .unit = "sws_dither" },
71
71
{ "auto" , "leave choice to sws" , 0 , AV_OPT_TYPE_CONST , { .i64 = SWS_DITHER_AUTO }, INT_MIN , INT_MAX , VE , .unit = "sws_dither" },
72
72
{ "bayer" , "bayer dither" , 0 , AV_OPT_TYPE_CONST , { .i64 = SWS_DITHER_BAYER }, INT_MIN , INT_MAX , VE , .unit = "sws_dither" },
73
73
{ "ed" , "error diffusion" , 0 , AV_OPT_TYPE_CONST , { .i64 = SWS_DITHER_ED }, INT_MIN , INT_MAX , VE , .unit = "sws_dither" },
0 commit comments