diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/plugins/Input/ffmpeg/decoderffmpegfactory.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/Input/ffmpeg/decoderffmpegfactory.cpp b/src/plugins/Input/ffmpeg/decoderffmpegfactory.cpp index da2be5c0f..4ad80a557 100644 --- a/src/plugins/Input/ffmpeg/decoderffmpegfactory.cpp +++ b/src/plugins/Input/ffmpeg/decoderffmpegfactory.cpp @@ -85,10 +85,17 @@ bool DecoderFFmpegFactory::canDecode(QIODevice *i) const const DecoderProperties DecoderFFmpegFactory::properties() const { + av_register_all(); QSettings settings(Qmmp::configFile(), QSettings::IniFormat); QStringList filters; filters << "*.wma" << "*.ape"; filters = settings.value("FFMPEG/filters", filters).toStringList(); + + if(!avcodec_find_decoder(CODEC_ID_AAC)) + { + filters.removeAll("*.aac"); + filters.removeAll("*.m4a"); + } DecoderProperties properties; properties.name = tr("FFmpeg Plugin"); properties.filters = filters; |
