avconv: fix a check for av_bsf_get_by_name() return value
authorAnton Khirnov <anton@khirnov.net>
Tue, 24 May 2016 14:36:16 +0000 (16:36 +0200)
committerAnton Khirnov <anton@khirnov.net>
Thu, 26 May 2016 13:40:34 +0000 (15:40 +0200)
avconv_opt.c

index d73df67..c02e479 100644 (file)
@@ -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);
         }