summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/bsf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/bsf.c b/libavcodec/bsf.c
index d9c8395260..62fe7ae5e8 100644
--- a/libavcodec/bsf.c
+++ b/libavcodec/bsf.c
@@ -18,6 +18,8 @@
#include <string.h>
+#include "config.h"
+
#include "libavutil/avassert.h"
#include "libavutil/log.h"
#include "libavutil/mem.h"
@@ -544,5 +546,10 @@ end:
int av_bsf_get_null_filter(AVBSFContext **bsf)
{
+#if CONFIG_NULL_BSF
+ extern const AVBitStreamFilter ff_null_bsf;
+ return av_bsf_alloc(&ff_null_bsf, bsf);
+#else
return av_bsf_alloc(&list_bsf, bsf);
+#endif
}