You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avfilter/vf_qp: Don't store NAN in int
Affected the filter-pp2 FATE-test. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -143,7 +143,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
|||||||
for (x = 0; x < s->qstride; x++) {
|
for (x = 0; x < s->qstride; x++) {
|
||||||
unsigned int block_idx = y * s->qstride + x;
|
unsigned int block_idx = y * s->qstride + x;
|
||||||
AVVideoBlockParams *b = av_video_enc_params_block(par_out, block_idx);
|
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 var_values[] = { !!sd_in, qp, x, y, s->qstride, s->h, 0};
|
||||||
double temp_val;
|
double temp_val;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user