diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2011-04-25 07:37:40 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2011-04-25 07:37:40 +0000 |
| commit | 3f6b469fac96a6f1187b6022fac28aa26faee230 (patch) | |
| tree | 240f5af19851d4128bce7a572117485a0cce70ee /src/plugins/Input/ffmpeg/decoderffmpegfactory.cpp | |
| parent | 09683ad39216fcc72d4e8dff11005c59c3d6b123 (diff) | |
| download | qmmp-3f6b469fac96a6f1187b6022fac28aa26faee230.tar.gz qmmp-3f6b469fac96a6f1187b6022fac28aa26faee230.tar.bz2 qmmp-3f6b469fac96a6f1187b6022fac28aa26faee230.zip | |
ac3 support
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2169 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/ffmpeg/decoderffmpegfactory.cpp')
| -rw-r--r-- | src/plugins/Input/ffmpeg/decoderffmpegfactory.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/Input/ffmpeg/decoderffmpegfactory.cpp b/src/plugins/Input/ffmpeg/decoderffmpegfactory.cpp index 25e73b95e..d1b6c4c76 100644 --- a/src/plugins/Input/ffmpeg/decoderffmpegfactory.cpp +++ b/src/plugins/Input/ffmpeg/decoderffmpegfactory.cpp @@ -69,6 +69,8 @@ bool DecoderFFmpegFactory::canDecode(QIODevice *i) const return true; if(filters.contains("*.aac") && !memcmp(fmt->name, "aac", 3)) return true; + if(filters.contains("*.ac3") && !memcmp(fmt->name, "ac3", 3)) + return true; return false; } @@ -95,13 +97,15 @@ const DecoderProperties DecoderFFmpegFactory::properties() const properties.contentTypes << "audio/mpeg"; if(filters.contains("*.aac")) properties.contentTypes << "audio/aac" << "audio/aacp"; - if(filters.contains("*.m4a")) - properties.contentTypes << "audio/x-ffmpeg-shorten"; if(filters.contains("*.shn")) + properties.contentTypes << "audio/x-ffmpeg-shorten"; + if(filters.contains("*.m4a")) { properties.contentTypes << "audio/3gpp" << "audio/3gpp2" << "audio/mp4"; properties.contentTypes << "audio/MP4A-LATM" << "audio/mpeg4-generic"; } + if(filters.contains("*.ac3")) + properties.contentTypes << "audio/ac3"; properties.shortName = "ffmpeg"; properties.hasAbout = true; properties.hasSettings = true; |
