• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

frameworks/av


Commit MetaInfo

Revision67044030d8ceb4a875b2a35f5dffd5311a7f3815 (tree)
Time2015-12-22 13:09:54
AuthorBilly <xiaobing.feng@wind...>
CommiterChih-Wei Huang

Log Message

FLACExtractor: Add more sample rates support

In FLACExtractor.cpp, it has function to check file's sample rate.
If the input sample rate is not in its list, it will return "unsupported
sample rate" issue. Modify code to make other sample rates (100,1k,42k,46k)
pass the check

Issue: AXIA-1441
Change-Id: I48f91119275560ec6d00feb0dedc70d10aa55262
Signed-off-by: Xiaobing Feng <xiaobing.feng@windriver.com>
Signed-off-by: Matt Gumbel <matthew.k.gumbel@intel.com>

Change Summary

Incremental Difference

--- a/media/libstagefright/FLACExtractor.cpp
+++ b/media/libstagefright/FLACExtractor.cpp
@@ -571,6 +571,8 @@ status_t FLACParser::init()
571571 }
572572 // check sample rate
573573 switch (getSampleRate()) {
574+ case 100:
575+ case 1000:
574576 case 8000:
575577 case 11025:
576578 case 12000:
@@ -578,7 +580,9 @@ status_t FLACParser::init()
578580 case 22050:
579581 case 24000:
580582 case 32000:
583+ case 42000:
581584 case 44100:
585+ case 46000:
582586 case 48000:
583587 case 88200:
584588 case 96000: