summaryrefslogtreecommitdiff
path: root/libavfilter/vf_colorlevels.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2021-02-02 16:14:48 +0100
committerPaul B Mahol <onemda@gmail.com>2021-02-02 17:53:29 +0100
commit7ee3a5594b9ddf54099cc9019b6e4239510c422e (patch)
tree428f7189e8bd757e2f345f81223b7ea36cf7e341 /libavfilter/vf_colorlevels.c
parent62e24a5d80697488a3e466c96f2f666405a7ef80 (diff)
avfilter/vf_colorlevels: no need to use double for coeff
Diffstat (limited to 'libavfilter/vf_colorlevels.c')
-rw-r--r--libavfilter/vf_colorlevels.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/vf_colorlevels.c b/libavfilter/vf_colorlevels.c
index b4d8106133..f1eeb68c54 100644
--- a/libavfilter/vf_colorlevels.c
+++ b/libavfilter/vf_colorlevels.c
@@ -111,7 +111,7 @@ typedef struct ThreadData {
int dst_linesize;
int src_linesize;
- double coeff;
+ float coeff;
uint8_t offset;
int h;
@@ -135,7 +135,7 @@ typedef struct ThreadData {
\
int imin = td->imin; \
int omin = td->omin; \
- double coeff = td->coeff;
+ float coeff = td->coeff;
static int colorlevel_slice_8(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
{
@@ -198,7 +198,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
int imax = lrint(r->in_max * UINT8_MAX);
int omin = lrint(r->out_min * UINT8_MAX);
int omax = lrint(r->out_max * UINT8_MAX);
- double coeff;
+ float coeff;
ThreadData td;
if (imin < 0) {
@@ -250,7 +250,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
int imax = lrint(r->in_max * UINT16_MAX);
int omin = lrint(r->out_min * UINT16_MAX);
int omax = lrint(r->out_max * UINT16_MAX);
- double coeff;
+ float coeff;
ThreadData td;
if (imin < 0) {