[FFmpeg-cvslog] avcodec/bsf: Fix av_bsf_list_free()

Michael Niedermayer git at videolan.org
Thu Jan 26 02:14:36 EET 2017


ffmpeg | branch: release/3.2 | Michael Niedermayer <michael at niedermayer.cc> | Mon Dec 26 23:45:53 2016 +0100| [3442c20c4d380d232120ba5c41283ded0125b348] | committer: Michael Niedermayer

avcodec/bsf: Fix av_bsf_list_free()

Negate null check
Fixes CID1396248

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 762bf6f4afa906a69366cbd125ef40fb788280de)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3442c20c4d380d232120ba5c41283ded0125b348
---

 libavcodec/bsf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/bsf.c b/libavcodec/bsf.c
index dfb127e..ac2024b 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)



More information about the ffmpeg-cvslog mailing list