mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Fix MIME type for divx in Matroska
Issue: #3863 PiperOrigin-RevId: 234453728
This commit is contained in:
parent
cedfa19988
commit
5d8e1784b9
2 changed files with 2 additions and 1 deletions
|
|
@ -2070,7 +2070,7 @@ public class MatroskaExtractor implements Extractor {
|
|||
buffer.skipBytes(16); // size(4), width(4), height(4), planes(2), bitcount(2).
|
||||
long compression = buffer.readLittleEndianUnsignedInt();
|
||||
if (compression == FOURCC_COMPRESSION_DIVX) {
|
||||
return new Pair<>(MimeTypes.VIDEO_H263, null);
|
||||
return new Pair<>(MimeTypes.VIDEO_DIVX, null);
|
||||
} else if (compression == FOURCC_COMPRESSION_VC1) {
|
||||
// Search for the initialization data from the end of the BITMAPINFOHEADER. The last 20
|
||||
// bytes of which are: sizeImage(4), xPel/m (4), yPel/m (4), clrUsed(4), clrImportant(4).
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ public final class MimeTypes {
|
|||
public static final String VIDEO_MPEG = BASE_TYPE_VIDEO + "/mpeg";
|
||||
public static final String VIDEO_MPEG2 = BASE_TYPE_VIDEO + "/mpeg2";
|
||||
public static final String VIDEO_VC1 = BASE_TYPE_VIDEO + "/wvc1";
|
||||
public static final String VIDEO_DIVX = BASE_TYPE_VIDEO + "/divx";
|
||||
public static final String VIDEO_DOLBY_VISION = BASE_TYPE_VIDEO + "/dolby-vision";
|
||||
public static final String VIDEO_UNKNOWN = BASE_TYPE_VIDEO + "/x-unknown";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue