diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-12-26 23:45:53 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-01-08 15:26:01 +0100 |
commit | 762bf6f4afa906a69366cbd125ef40fb788280de (patch) | |
tree | 5cef950047110f3aa0eb6dd977cbfd4a9f2095bc | |
parent | bd83c295fc1b7f8001e5d134b912af86cd62c3f2 (diff) | |
download | ffmpeg-762bf6f4afa906a69366cbd125ef40fb788280de.tar.gz |
avcodec/bsf: Fix av_bsf_list_free()
Negate null check
Fixes CID1396248
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) |