mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
MP4 reader: skip cover art images of unknown type instead of assuming JPEG
This commit is contained in:
parent
2a7becf502
commit
0a045837a5
2
NEWS.md
2
NEWS.md
@ -15,6 +15,8 @@
|
|||||||
art images. This could cause file identification to fail when the cover art
|
art images. This could cause file identification to fail when the cover art
|
||||||
was located at the end of the MP4 file. Even if it succeeded, this meant too
|
was located at the end of the MP4 file. Even if it succeeded, this meant too
|
||||||
much data present in the attachment. Fixes #2650.
|
much data present in the attachment. Fixes #2650.
|
||||||
|
* mkvmerge: MP4 reader: covert art images with unknown image types will be
|
||||||
|
skipped instead of treated as JPEG images.
|
||||||
|
|
||||||
## Build system changes
|
## Build system changes
|
||||||
|
|
||||||
|
@ -1052,6 +1052,9 @@ qtmp4_reader_c::handle_covr_atom(qt_atom_t parent,
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
auto type = m_in->read_uint32_be();
|
auto type = m_in->read_uint32_be();
|
||||||
|
if (!mtx::included_in<int>(type, MP4ADT_BMP, MP4ADT_JPEG, MP4ADT_PNG))
|
||||||
|
return;
|
||||||
|
|
||||||
m_in->skip(4);
|
m_in->skip(4);
|
||||||
|
|
||||||
data_size -= 8;
|
data_size -= 8;
|
||||||
|
Loading…
Reference in New Issue
Block a user