summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/OggExtractor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix benign unsigned overflow in OggExtractorChad Brubaker2015-11-051-2/+7
| | | | | | | | | | | When computing mCurrentPageSamples it was possible to have a harmless unsigned integer overflow during the conf pages leading to false positives with fsanitize integer. To prevent the false positives clamp the result to 0. Bug: 23488745 Bug: 23110888 Change-Id: I0769cb4a915d45b00ea43f2abbefe9ee46165cc7
* Fix benign overflow in getTimeUsOfGranuleChad Brubaker2015-11-051-0/+6
| | | | | Bug: 24748446 Change-Id: I1f8e3927e9a8f646a0d804161924ae0dcc5ab75d
* DO NOT MERGE Avoid size_t overflow in base64 decoding once againWonsik Kim2015-09-281-90/+12
| | | | | | | | Switch to foundation base64 function in OggExtractor and fix the issue there. Bug: 23707088 Change-Id: If8ba3347c213fe7a36668c943ed264f2871ad468
* Ogg: avoid size_t overflow in base64 decodingWonsik Kim2015-09-281-5/+15
| | | | | Bug: 23707088 Change-Id: I8d32841fee3213c721cdcc57788807ea64d19d74
* Fix Ogg album artMarco Nelissen2015-08-071-4/+9
| | | | | | Bug: 23036083 Bug: https://code.google.com/p/android/issues/detail?id=182053 Change-Id: I1a5cbe06990900160c2addade238c1e9feab8f71
* Ogg Opus: handle cases where first sample has non 0 timeRobert Shih2015-06-081-1/+38
| | | | | Bug: 19286916 Change-Id: I660daae57e7b7e793f55154c74347e9d53627324
* stagefright: initial Ogg Opus supportRobert Shih2015-06-031-72/+369
| | | | | Bug: 19286916 Change-Id: I176d803aa5a16038d074aa06b41fc76da0be8952
* OggExtractor::verifyHeader: return errors instead of assertingMarco Nelissen2015-05-051-2/+6
| | | | | Bug: 16631522 Change-Id: I619455af64cad04a0f4fd35e52e3f3709efad8b4
* stagefright: warnings be gone, some are now errors, use clangLajos Molnar2015-04-171-9/+9
| | | | Change-Id: I81f438ae444f04c12ae27ae4ef6d073033de172c
* am c9330d9a: am 89ee55cb: Merge "OggExtractor: ignore timestamp calculation ↵Robert Shih2014-12-191-10/+8
|\ | | | | | | | | | | | | for configuration packets" into lmp-mr1-dev * commit 'c9330d9ad01f0703a8f8cf5a1dbe20a9eab7ec06': OggExtractor: ignore timestamp calculation for configuration packets
| * OggExtractor: ignore timestamp calculation for configuration packetsRobert Shih2014-12-181-10/+8
| | | | | | | | | | Bug: 18801155 Change-Id: Ib0b5a03fa4cf2c75d79be2df939257835259deed
* | am 42495ddc: am 592f3bc8: Merge "Added support for YEAR metadata key from ↵Glenn Kasten2014-12-011-0/+1
|\ \ | |/ |/| | | | | | | | | VorbisComments" * commit '42495ddc3501c947441f892a56f2ac9ee96d7082': Added support for YEAR metadata key from VorbisComments
| * Added support for YEAR metadata key from VorbisCommentsAndreas Lillvik2014-11-111-0/+1
| | | | | | | | | | | | | | | | The OggExtractor wasn't extracting the YEAR key when the metadata in the file was parsed. The YEAR key is now extracted when the file metadata is parsed. Change-Id: Idf0d1a37fb141491dce5de527703ca1b27f621e7
* | Fix Ogg Vorbis packet timestampsMarco Nelissen2014-11-111-14/+61
|/ | | | | Bug: 17586090 Change-Id: Iea88f7cc1f623cbea5df24169ea76181925fbb13
* stagefright: handle seeking to before first cue-point.Lajos Molnar2014-07-211-5/+9
| | | | | Bug: 16446994 Change-Id: Id3f9d6780a7c4f62171cbfa8675a67334e8dfa10
* stagefright: Fix seeking in MPEG4 containerLajos Molnar2014-07-171-4/+4
| | | | | | | | - seek based on user-visible timestamp - seek to previous, next and closest exactly Bug: 12786906 Change-Id: I2d5e1fbff6469b6f081a284be2222a4cb50aa754
* libstagefright: 64-bit compile warningsMark Salyzyn2014-06-261-9/+9
| | | | Change-Id: I3d1146714fa23be3d4e696599b6f70cac1f9d28b
* warnings be gone.Andreas Huber2014-02-111-5/+5
| | | | Change-Id: Ie3bae3f037730e316d7fca12e7a3527973f752ef
* Move away from MediaDebug and use ADebug insteadJames Dong2012-02-101-1/+1
| | | | Change-Id: I963a3b6f79a7292891973cbeeaf3378b38629f08
* Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-081-1/+1
| | | | | | | See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
* Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGESteve Block2012-01-041-3/+3
| | | | | | | See https://android-git.corp.google.com/g/156801 Bug: 5449033 Change-Id: Ib08fe86d23db91ee153e9f91a99a35c42b9208ea
* Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF) DO NOT MERGESteve Block2011-10-261-20/+20
| | | | | | | See https://android-git.corp.google.com/g/#/c/143865 Bug: 5449033 Change-Id: I0122812ed6ff6f5b59fe4a43ab8bff0577adde0a
* OGG: To prevent mediaserver from crash by SIGFPE (divide by zero) and more ↵Dongwon Kang2011-06-201-2/+3
| | | | | | | guarding in getMetaData(). BUG:4689872 Change-Id: I483bf230b5571a8d1815b954dce2c52e9a5f1f37
* Make sure the ogg extractor returns appropriate error codes.Andreas Huber2011-05-101-6/+13
| | | | Change-Id: I36cbf58aa6fa9195e1cc052f91e1183f57069d03
* Provide better duration and seek accuracy if playing vorbis audio from a ↵Andreas Huber2011-03-021-16/+125
| | | | | | | non-streaming source. Change-Id: Ib823c2dd28e84f4c49e3676f4e4962a6e006b166 related-to-bug: 3107013
* Bug 1804058 FLAC extractorGlenn Kasten2011-02-031-16/+22
| | | | | | | | | | | | | | | | | | | | | | | | | Note: dependent on external/flac for libFLAC Implemented and tested: * FLAC container * mono and stereo * standard sample rates * standard bit depths * sniffer * media scanner * Vorbis comment metadata including album art * random access seeking with "torture test" * web browser integration for audio/flac (not audio/x-flac), but note that most web servers don't correctly report the MIME type Not implemented: * 24-bit to 16-bit dither or noise shaping in AudioFlinger * 96 kHz to 44.1 or 48 kHz downsampling low pass filter in AudioFlinger * replay gain is better done in AudioFlinger * multi-channel, would need AudioFlinger support * Ogg container, does not seem to be very popular yet Change-Id: I300873e8c0cfc2e95403d9adb5064d16a2923f17
* Add support for the "compilation" tag in mp3, mp4 and ogg, and also addMarco Nelissen2011-01-071-0/+3
| | | | | | | | | support for two common ways of specifying album artist in ogg files. b/3311831 (cherry-picked from GB because of weird automerger failure) Change-Id: Ibf12a3d6bc8bbc2ac5ea815de6b33414b8f53f0f
* 64-bit file size/offset support for media frameworkJames Dong2010-11-181-16/+16
| | | | Change-Id: I3452bc2c0f1d990cc67285df2fce1f9f86ff8e10
* Vorbis files may have more samples encoded that should be used, i.e. we have ↵Andreas Huber2010-09-281-0/+77
| | | | | | | to trim samples at the end of the stream. This is crucial for proper looping of some audio files. related-to-bug: 3036592 Change-Id: Ib142b171c829ed74156c0281d9d4543fcc96c802
* Ogg files can be tagged to be automatically looping, this setting always ↵Andreas Huber2010-09-031-1/+5
| | | | | | | overrides the MediaPlayer's setLooping setting. Change-Id: Ifb564c6cdf6137eac14869f9ca7d471f05a5556a related-to-bug: 2974691
* Allow sniffers to return a packet of opaque data that the corresponding ↵Andreas Huber2010-08-251-1/+2
| | | | | | | extractor can take advantage of to not duplicate work already done sniffing. The mp3 extractor takes advantage of this now. Change-Id: Icb77ae3ee95a69c7da25b4d3b8696c0a2d33028a related-to-bug: 2948754
* Make the OggExtractor less verbose.Andreas Huber2010-08-161-4/+4
| | | | Change-Id: Ieea5f3fa98d93ca6ad8fa7dcd23054e1cd0b6338
* Support for communicating if a buffer read from the _extractor_ is a sync ↵Andreas Huber2010-08-061-0/+2
| | | | | | | sample or not. Change-Id: Ie71506224d937cfff1fa1273bfac31c47db8845f related-to-bug: 2900534
* A better fix for the OggExtractor referring to the sample rate while it ↵Andreas Huber2010-08-051-2/+8
| | | | | | | hasn't been initialized yet. Change-Id: I001fa36d3f5bf385b9f9d086c802673071c65db9 related-to-bug: 2896814
* Fix divide by zero.Marco Nelissen2010-08-041-1/+1
| | | | Change-Id: I3113234aa5936965424dde5b24e448df1be0b603
* Support finer seek control on MediaSources.Andreas Huber2010-07-211-1/+2
| | | | | | related-to-bug: 2858448 Change-Id: Ifb4b13b990fd5889113e47e2c62249ac43391fa1
* Convert a number of assertions into runtime errors (OggExtractor)Andreas Huber2010-05-261-20/+46
| | | | Change-Id: I8fcaec927d7b72e9d61cb7283e54523711980268
* Support for ogg(vorbis) metadata in stagefright including album art.Andreas Huber2010-05-251-14/+201
| | | | | Change-Id: I0c8c0136cebe2d2d97caabb7bc0c65be86329dbb related-to-bug: 2713414
* Better seek handling and proper reset of the vorbis decoder after a ↵Andreas Huber2010-05-111-1/+12
| | | | | | | | discontinuity (seek) Change-Id: I3c76d35da48e0964f7a0fa2816f8573b5e1a9436 related-to-bug: 2674036 QA-impact: low, only affects ogg-vorbis playback through http
* A new OggExtractor/VorbisDecoder combo to support approximate seeking.Andreas Huber2010-05-071-0/+586
Change-Id: Id5d0c1c8b1adc62896bb5ed951f7b5cfda811e95 related-to-bug: 2654400