History

avfilter/vf_qp: Don't store NAN in int

Affected the filter-pp2 FATE-test.

Andreas Rheinhardt committed 4 years ago

Commit e72e8ec1 parent f0ee3871 file · +1 −1Browse files

Unified · Split

libavfilter/vf_qp.c+1−1
@@ -143,7 +143,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) · 142 unmodified lines
143 for (x = 0; x < s->qstride; x++) {143 for (x = 0; x < s->qstride; x++) {
144 unsigned int block_idx = y * s->qstride + x;144 unsigned int block_idx = y * s->qstride + x;
145 AVVideoBlockParams *b = av_video_enc_params_block(par_out, block_idx);145 AVVideoBlockParams *b = av_video_enc_params_block(par_out, block_idx);
146 int qp = sd_in ? in_qp_global + BLOCK_QP_DELTA(block_idx) : NAN;146 double qp = sd_in ? in_qp_global + BLOCK_QP_DELTA(block_idx) : NAN;
147 double var_values[] = { !!sd_in, qp, x, y, s->qstride, s->h, 0};147 double var_values[] = { !!sd_in, qp, x, y, s->qstride, s->h, 0};
148 double temp_val;148 double temp_val;
149 149

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t