aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-12-26 23:45:53 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2017-01-26 00:34:12 +0100
commit3442c20c4d380d232120ba5c41283ded0125b348 (patch)
tree91cc830b2243572767cb0bbf7eaefac7f0dea96d
parent7d222736c27ef7aa0880fc91a51d83dfeac7b388 (diff)
downloadffmpeg-3442c20c4d380d232120ba5c41283ded0125b348.tar.gz
avcodec/bsf: Fix av_bsf_list_free()
Negate null check Fixes CID1396248 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 762bf6f4afa906a69366cbd125ef40fb788280de) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/bsf.c2
1 files changed, 1 insertions, 1 deletions
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)