diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2021-03-13 10:35:02 +0800 |
---|---|---|
committer | Limin Wang <lance.lmwang@gmail.com> | 2021-05-01 08:45:30 +0800 |
commit | 8410000f178134a7123b869b799f1a907c0028bf (patch) | |
tree | 20c0fc344fcd1097f6e228ad5112ea1f33c52db3 /libavfilter/vf_psnr.c | |
parent | fd3dabe68e14cebb3664b155b9e072ad60c11e91 (diff) | |
download | ffmpeg-8410000f178134a7123b869b799f1a907c0028bf.tar.gz |
avfilter/vf_psnr: remove unnecessary check
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavfilter/vf_psnr.c')
-rw-r--r-- | libavfilter/vf_psnr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_psnr.c b/libavfilter/vf_psnr.c index 7117e26dce..e5459d3f34 100644 --- a/libavfilter/vf_psnr.c +++ b/libavfilter/vf_psnr.c @@ -372,7 +372,7 @@ static int config_input_ref(AVFilterLink *inlink) if (!s->score) return AVERROR(ENOMEM); - for (int t = 0; t < s->nb_threads && s->score; t++) { + for (int t = 0; t < s->nb_threads; t++) { s->score[t] = av_calloc(s->nb_components, sizeof(*s->score[0])); if (!s->score[t]) return AVERROR(ENOMEM); |