mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Format with google-java-format and add release note
This commit is contained in:
parent
d2f677bc4c
commit
743e7942b6
@ -82,6 +82,9 @@
|
|||||||
* Apps with custom `SubtitleDecoder` implementations need to update
|
* Apps with custom `SubtitleDecoder` implementations need to update
|
||||||
them to implement `SubtitleParser` instead (and
|
them to implement `SubtitleParser` instead (and
|
||||||
`SubtitleParser.Factory` instead of `SubtitleDecoderFactory`).
|
`SubtitleParser.Factory` instead of `SubtitleDecoderFactory`).
|
||||||
|
* PGS: Fix run-length decoding to resolve `0` as a color index, instead of
|
||||||
|
a literal color value
|
||||||
|
([#1367](https://github.com/androidx/media/pull/1367)).
|
||||||
* Metadata:
|
* Metadata:
|
||||||
* Fix mapping of MP4 to ID3 sort tags. Previously the 'album sort'
|
* Fix mapping of MP4 to ID3 sort tags. Previously the 'album sort'
|
||||||
(`soal`), 'artist sort' (`soar`) and 'album artist sort' (`soaa`) MP4
|
(`soal`), 'artist sort' (`soar`) and 'album artist sort' (`soaa`) MP4
|
||||||
|
@ -248,7 +248,8 @@ public final class PgsParser implements SubtitleParser {
|
|||||||
(switchBits & 0x40) == 0
|
(switchBits & 0x40) == 0
|
||||||
? (switchBits & 0x3F)
|
? (switchBits & 0x3F)
|
||||||
: (((switchBits & 0x3F) << 8) | bitmapData.readUnsignedByte());
|
: (((switchBits & 0x3F) << 8) | bitmapData.readUnsignedByte());
|
||||||
int color = (switchBits & 0x80) == 0 ? colors[0] : colors[bitmapData.readUnsignedByte()];
|
int color =
|
||||||
|
(switchBits & 0x80) == 0 ? colors[0] : colors[bitmapData.readUnsignedByte()];
|
||||||
Arrays.fill(
|
Arrays.fill(
|
||||||
argbBitmapData, argbBitmapDataIndex, argbBitmapDataIndex + runLength, color);
|
argbBitmapData, argbBitmapDataIndex, argbBitmapDataIndex + runLength, color);
|
||||||
argbBitmapDataIndex += runLength;
|
argbBitmapDataIndex += runLength;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user