Only set HAVE_LIBAVUTIL if libav is actually used
src/log.c uses av_log_set_level() and av_log_set_callback() from libavutil if HAVE_LIBAVUTIL is set, so the libavutil dependence must be added at the same time. Since libav logging is only used by the h264 code, enable it all together for now.pull/80/head
parent
b932f3e2e0
commit
1b929afb2c
|
@ -114,14 +114,11 @@ if gbm.found()
|
|||
config.set('HAVE_GBM', true)
|
||||
endif
|
||||
|
||||
if libavutil.found()
|
||||
config.set('HAVE_LIBAVUTIL', true)
|
||||
endif
|
||||
|
||||
if gbm.found() and libdrm.found() and libavcodec.found() and libavfilter.found() and libavutil.found()
|
||||
sources += [ 'src/h264-encoder.c', 'src/open-h264.c' ]
|
||||
dependencies += [libdrm, libavcodec, libavfilter, libavutil]
|
||||
config.set('ENABLE_OPEN_H264', true)
|
||||
config.set('HAVE_LIBAVUTIL', true)
|
||||
endif
|
||||
|
||||
configure_file(
|
||||
|
|
Loading…
Reference in New Issue