[FFmpeg-devel] [PATCH] avcodec/bsf: Fix av_bsf_list_free()
Michael Niedermayer
michael at niedermayer.cc
Tue Dec 27 03:46:59 EET 2016
Negate null check
Fixes CID1396248
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavcodec/bsf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
--
2.11.0
More information about the ffmpeg-devel
mailing list