Commit f6e94225 authored by Guo, Yejun's avatar Guo, Yejun Committed by Michael Niedermayer

avfilter/vf_dnn_processing: fix fate-source

Signed-off-by: 's avatarGuo, Yejun <yejun.guo@intel.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 9802599a
......@@ -241,7 +241,7 @@ static int copy_from_dnn_to_frame(AVFrame *out, const DNNData *dnn_data)
for(int j = 0; j < out->width * 3; j++) {
int k = i * out->linesize[0] + j;
int t = i * out->width * 3 + j;
out->data[0][k] = av_clip((int)(dnn_output[t] * 255.0f), 0, 255);
out->data[0][k] = av_clip_uintp2((int)(dnn_output[t] * 255.0f), 8);
}
}
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment