Skip to content

can not decode APICFrame picutreData (mimetype=image/png, encoding=UTF-16, description=Cover) #9087

@Empressia

Description

@Empressia

Problem

I extracted the APICFrame from an MP3 file and tried to decode it with BitmapFactory#decodeByteArray.
but it returns null.

MP3 file information

MP3 files are updated by mutagen (version 1.45.1 python library),
For AICFrames, the encoding is UTF-16, MIMEType is image/png, and description is "Cover".

APICFrame#toString()

APIC: mimeType=image/png, description=Cove�

It is dingy.

Environment

  • ExoPlayer version number -> 2.14.0
  • Android version -> 11
  • Android device -> Xperia 10 II

extras

  • When I updated description from "Cover" to ""(0 length string) by mutagen, i can get a bitmap expected (non null).
  • When I updated encoding from UTF-16 to ISO-8859-1, i can get a bitmap expected (non null).
  • When I updated image with JPEG, i can get a bitmap expected (non null).
  • When I updated MP3 file with WMP, i get null by decoding.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions