зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1039639 - Add support for Flac on Firefox OS. r=cajbir
This commit is contained in:
Родитель
67dfc01f6a
Коммит
ca6add6d5f
|
@ -221,6 +221,7 @@ static const char* const gOmxTypes[] = {
|
||||||
"audio/mp4",
|
"audio/mp4",
|
||||||
"audio/amr",
|
"audio/amr",
|
||||||
"audio/3gpp",
|
"audio/3gpp",
|
||||||
|
"audio/flac",
|
||||||
"video/mp4",
|
"video/mp4",
|
||||||
"video/3gpp",
|
"video/3gpp",
|
||||||
"video/3gpp2",
|
"video/3gpp2",
|
||||||
|
|
|
@ -9,6 +9,7 @@ var gSmallTests = [
|
||||||
{ name:"small-shot.m4a", type:"audio/mp4", duration:0.29 },
|
{ name:"small-shot.m4a", type:"audio/mp4", duration:0.29 },
|
||||||
{ name:"small-shot.mp3", type:"audio/mpeg", duration:0.27 },
|
{ name:"small-shot.mp3", type:"audio/mpeg", duration:0.27 },
|
||||||
{ name:"small-shot-mp3.mp4", type:"audio/mp4; codecs=mp3", duration:0.34 },
|
{ name:"small-shot-mp3.mp4", type:"audio/mp4; codecs=mp3", duration:0.34 },
|
||||||
|
{ name:"small-shot.flac", type:"audio/flac", duration:0.197 },
|
||||||
{ name:"r11025_s16_c1.wav", type:"audio/x-wav", duration:1.0 },
|
{ name:"r11025_s16_c1.wav", type:"audio/x-wav", duration:1.0 },
|
||||||
{ name:"320x240.ogv", type:"video/ogg", width:320, height:240, duration:0.266 },
|
{ name:"320x240.ogv", type:"video/ogg", width:320, height:240, duration:0.266 },
|
||||||
{ name:"seek.webm", type:"video/webm", width:320, height:240, duration:3.966 },
|
{ name:"seek.webm", type:"video/webm", width:320, height:240, duration:3.966 },
|
||||||
|
|
|
@ -243,6 +243,7 @@ support-files =
|
||||||
small-shot.mp3^headers^
|
small-shot.mp3^headers^
|
||||||
small-shot.ogg
|
small-shot.ogg
|
||||||
small-shot.ogg^headers^
|
small-shot.ogg^headers^
|
||||||
|
small-shot.flac
|
||||||
sound.ogg
|
sound.ogg
|
||||||
sound.ogg^headers^
|
sound.ogg^headers^
|
||||||
spacestorm-1000Hz-100ms.ogg
|
spacestorm-1000Hz-100ms.ogg
|
||||||
|
|
Двоичный файл не отображается.
|
@ -79,6 +79,7 @@
|
||||||
#define AUDIO_MP3 "audio/mpeg"
|
#define AUDIO_MP3 "audio/mpeg"
|
||||||
#define AUDIO_MP4 "audio/mp4"
|
#define AUDIO_MP4 "audio/mp4"
|
||||||
#define AUDIO_AMR "audio/amr"
|
#define AUDIO_AMR "audio/amr"
|
||||||
|
#define AUDIO_FLAC "audio/flac"
|
||||||
#define AUDIO_3GPP "audio/3gpp"
|
#define AUDIO_3GPP "audio/3gpp"
|
||||||
#define AUDIO_MIDI "audio/x-midi"
|
#define AUDIO_MIDI "audio/x-midi"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Extensions we recognize for DeviceStorage storage areas
|
# Extensions we recognize for DeviceStorage storage areas
|
||||||
pictures=*.jpe; *.jpg; *.jpeg; *.gif; *.png; *.bmp;
|
pictures=*.jpe; *.jpg; *.jpeg; *.gif; *.png; *.bmp;
|
||||||
music=*.mp3; *.oga; *.ogg; *.m4a; *.m4b; *.m4p; *.m4r; *.3gp; *.mp4; *.m3u; *.pls; *.opus; *.amr; *.wav; *.lcka;
|
music=*.mp3; *.oga; *.ogg; *.m4a; *.m4b; *.m4p; *.m4r; *.3gp; *.mp4; *.m3u; *.pls; *.opus; *.amr; *.wav; *.lcka; *.flac;
|
||||||
videos=*.mp4; *.mpeg; *.mpg; *.ogv; *.ogx; *.webm; *.3gp; *.3g2; *.ogg; *.m4v;
|
videos=*.mp4; *.mpeg; *.mpg; *.ogv; *.ogx; *.webm; *.3gp; *.3g2; *.ogg; *.m4v;
|
||||||
|
|
|
@ -542,6 +542,7 @@ static nsExtraMimeTypeEntry extraMimeEntries [] =
|
||||||
{ AUDIO_OGG, "opus", "Opus Audio" },
|
{ AUDIO_OGG, "opus", "Opus Audio" },
|
||||||
#ifdef MOZ_WIDGET_GONK
|
#ifdef MOZ_WIDGET_GONK
|
||||||
{ AUDIO_AMR, "amr", "Adaptive Multi-Rate Audio" },
|
{ AUDIO_AMR, "amr", "Adaptive Multi-Rate Audio" },
|
||||||
|
{ AUDIO_FLAC, "flac", "FLAC Audio" },
|
||||||
#endif
|
#endif
|
||||||
{ VIDEO_WEBM, "webm", "Web Media Video" },
|
{ VIDEO_WEBM, "webm", "Web Media Video" },
|
||||||
{ AUDIO_WEBM, "webm", "Web Media Audio" },
|
{ AUDIO_WEBM, "webm", "Web Media Audio" },
|
||||||
|
|
Загрузка…
Ссылка в новой задаче