Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e3906cd authored by Bryan Mawhinney's avatar Bryan Mawhinney Committed by android-build-merger
Browse files

Allow parsing of xyz chunks containing altitude am: 23b98e35

am: dedfb43c

Change-Id: I733e4c21dbd0f66582d9c1e887a3b54be72eaace
parents 49f56aee dedfb43c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1732,8 +1732,9 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) {

            // Worst case the location string length would be 18,
            // for instance +90.0000-180.0000, without the trailing "/" and
            // the string length + language code.
            char buffer[18];
            // the string length + language code, and some devices include
            // an additional 8 bytes of altitude, e.g. +007.186
            char buffer[18 + 8];

            // Substracting 5 from the data size is because the text string length +
            // language code takes 4 bytes, and the trailing slash "/" takes 1 byte.