Commit 762bf6f4 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/bsf: Fix av_bsf_list_free()

Negate null check
Fixes CID1396248
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent bd83c295
...@@ -403,7 +403,7 @@ void av_bsf_list_free(AVBSFList **lst) ...@@ -403,7 +403,7 @@ void av_bsf_list_free(AVBSFList **lst)
{ {
int i; int i;
if (*lst) if (!*lst)
return; return;
for (i = 0; i < (*lst)->nb_bsfs; ++i) for (i = 0; i < (*lst)->nb_bsfs; ++i)
......
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