ffmpeg | branch: master | Limin Wang <[email protected]> | Sat Mar 13 10:34:12 2021 +0800| [fd3dabe68e14cebb3664b155b9e072ad60c11e91] | committer: Limin Wang
avfilter/vf_ssim: remove unnecessary check For the pointer have been checked in the previous few lines of code Signed-off-by: Limin Wang <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fd3dabe68e14cebb3664b155b9e072ad60c11e91 --- libavfilter/vf_ssim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_ssim.c b/libavfilter/vf_ssim.c index e004b36e76..c6e4fe286a 100644 --- a/libavfilter/vf_ssim.c +++ b/libavfilter/vf_ssim.c @@ -496,7 +496,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); _______________________________________________ ffmpeg-cvslog mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
