spa: ffmpeg: remove libavformat dependency

`av_register_all()` is the only thing used from libavformat,
but that doesn't seem to be needed for codec enumeration,
so remove it, and call `avcodec_register_all()` instead
when libavcodec < 58.10.100.
This commit is contained in:
Barnabás Pőcze 2021-05-15 14:32:52 +02:00 committed by Wim Taymans
parent 3f567eeb56
commit 3baf3fcfec
4 changed files with 5 additions and 7 deletions

View file

@ -5,6 +5,6 @@ ffmpeg_sources = ['ffmpeg.c',
ffmpeglib = shared_library('spa-ffmpeg',
ffmpeg_sources,
include_directories : [spa_inc],
dependencies : [ avcodec_dep, avformat_dep ],
dependencies : [avcodec_dep],
install : true,
install_dir : spa_plugindir / 'ffmpeg')