diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-12-26 23:45:53 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-01-26 00:34:12 +0100 |
commit | 3442c20c4d380d232120ba5c41283ded0125b348 (patch) | |
tree | 91cc830b2243572767cb0bbf7eaefac7f0dea96d | |
parent | 7d222736c27ef7aa0880fc91a51d83dfeac7b388 (diff) | |
download | ffmpeg-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.c | 2 |
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) |