Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-12-27 01:45:53 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2017-01-08 17:26:01 +0300
commit762bf6f4afa906a69366cbd125ef40fb788280de (patch)
tree5cef950047110f3aa0eb6dd977cbfd4a9f2095bc /libavcodec/bsf.c
parentbd83c295fc1b7f8001e5d134b912af86cd62c3f2 (diff)
avcodec/bsf: Fix av_bsf_list_free()
Negate null check Fixes CID1396248 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/bsf.c')
-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)