diff mbox series

[FFmpeg-devel,5/7] avfilter/vf_qp: Don't store NAN in int

Message ID GV1P250MB0737BE3F2BDE86DF2702202B8F3D9@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit e72e8ec515faffb4819ea355b47e6bee382a0456
Headers show
Series [FFmpeg-devel,1/7] postproc/postprocess: Remove obsolete MMX(EXT)/3Dnow functions | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Nov. 6, 2022, 4:30 p.m. UTC
Affected the filter-pp2 FATE-test.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavfilter/vf_qp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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;