Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-11-06 18:51:13 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-11-09 19:39:00 +0300
commite72e8ec515faffb4819ea355b47e6bee382a0456 (patch)
treed8276beeb6cb06e23041fe624ef58537156abb39
parentf0ee38790b9fad7bef69f30fc5292be9f1a6fcc3 (diff)
avfilter/vf_qp: Don't store NAN in int
Affected the filter-pp2 FATE-test. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavfilter/vf_qp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_qp.c b/libavfilter/vf_qp.c
index 7c9d60fe21..a771b51ae1 100644
--- a/libavfilter/vf_qp.c
+++ b/libavfilter/vf_qp.c
@@ -143,7 +143,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
for (x = 0; x < s->qstride; x++) {
unsigned int block_idx = y * s->qstride + x;
AVVideoBlockParams *b = av_video_enc_params_block(par_out, block_idx);
- int qp = sd_in ? in_qp_global + BLOCK_QP_DELTA(block_idx) : NAN;
+ double qp = sd_in ? in_qp_global + BLOCK_QP_DELTA(block_idx) : NAN;
double var_values[] = { !!sd_in, qp, x, y, s->qstride, s->h, 0};
double temp_val;