From 80fb19bc234a3f2350d891adf39f3738a8e4849f Mon Sep 17 00:00:00 2001
From: Anton Khirnov <anton@khirnov.net>
Date: Tue, 24 May 2016 16:36:16 +0200
Subject: [PATCH] avconv: fix a check for av_bsf_get_by_name() return value

---
 avconv_opt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/avconv_opt.c b/avconv_opt.c
index d73df67e97b..c02e4798e60 100644
--- a/avconv_opt.c
+++ b/avconv_opt.c
@@ -1015,7 +1015,7 @@ static OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, e
             *next++ = 0;
 
         filter = av_bsf_get_by_name(bsf);
-        if (!bsf) {
+        if (!filter) {
             av_log(NULL, AV_LOG_FATAL, "Unknown bitstream filter %s\n", bsf);
             exit_program(1);
         }
-- 
GitLab