bluez5: asha-codec-g722: Drop the dependency on FFmpeg

We use the G722 encoder from Android itself and drop
the dependency on FFmpeg/libav.
This commit is contained in:
Sanchayan Maity 2025-02-13 18:26:10 +05:30
parent 27e0338f24
commit dbed1bdf3d
4 changed files with 547 additions and 120 deletions

View file

@ -173,12 +173,12 @@ if get_option('bluez5-codec-lc3').allowed() and lc3_dep.found()
install_dir : spa_plugindir / 'bluez5')
endif
if get_option('bluez5-codec-g722').allowed() and ffmpeg.allowed()
if get_option('bluez5-codec-g722').allowed()
bluez_codec_g722 = shared_library('spa-codec-bluez5-g722',
[ 'asha-codec-g722.c', 'media-codecs.c' ],
[ 'g722/g722_encode.c', 'asha-codec-g722.c', 'media-codecs.c' ],
include_directories : [ configinc ],
c_args : codec_args,
dependencies : [ spa_dep, avcodec_dep, avformat_dep, avutil_dep ],
dependencies : [ spa_dep ],
install : true,
install_dir : spa_plugindir / 'bluez5')
endif