[FFmpeg-devel] [PATCH 3/4] avfilter/vf_identify: remove unnecessary check

Paul B Mahol onemda at gmail.com
Thu Apr 29 19:24:02 EEST 2021


commit log/message is wrong

On Thu, Apr 29, 2021 at 3:16 PM <lance.lmwang at gmail.com> wrote:

> From: Limin Wang <lance.lmwang at gmail.com>
>
> Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
> ---
>  libavfilter/vf_identity.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavfilter/vf_identity.c b/libavfilter/vf_identity.c
> index 4e0a44d..c81c40a 100644
> --- a/libavfilter/vf_identity.c
> +++ b/libavfilter/vf_identity.c
> @@ -296,7 +296,7 @@ static int config_input_ref(AVFilterLink *inlink)
>      if (!s->scores)
>          return AVERROR(ENOMEM);
>
> -    for (int t = 0; t < s->nb_threads && s->scores; t++) {
> +    for (int t = 0; t < s->nb_threads; t++) {
>          s->scores[t] = av_calloc(s->nb_components, sizeof(*s->scores[0]));
>          if (!s->scores[t])
>              return AVERROR(ENOMEM);
> --
> 1.8.3.1
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-devel mailing list