diff --git a/libavcodec/bsf.c b/libavcodec/bsf.c index dfb127e7eb..ac2024b8db 100644 --- a/libavcodec/bsf.c +++ b/libavcodec/bsf.c @@ -403,7 +403,7 @@ void av_bsf_list_free(AVBSFList **lst) { int i; - if (*lst) + if (!*lst) return; for (i = 0; i < (*lst)->nb_bsfs; ++i)