Commit e7b1c021 by Haixia Shi

Replace ffmpeg specific link with generic VP9/MP4 atom syntax spec.

parent 614dbd1c
...@@ -1173,10 +1173,10 @@ import org.checkerframework.checker.nullness.compatqual.NullableType; ...@@ -1173,10 +1173,10 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
} else if (childAtomType == Atom.TYPE_vpcC) { } else if (childAtomType == Atom.TYPE_vpcC) {
ExtractorUtil.checkContainerInput(mimeType == null, /* message= */ null); ExtractorUtil.checkContainerInput(mimeType == null, /* message= */ null);
mimeType = (atomType == Atom.TYPE_vp08) ? MimeTypes.VIDEO_VP8 : MimeTypes.VIDEO_VP9; mimeType = (atomType == Atom.TYPE_vp08) ? MimeTypes.VIDEO_VP8 : MimeTypes.VIDEO_VP9;
parent.setPosition(childStartPosition + Atom.HEADER_SIZE); // See vpcC atom syntax: https://www.webmproject.org/vp9/mp4/#syntax_1
// vpcC atom parsing based on FFmpeg implementation // Skip FullBox header, and profile and level fields
// see https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/vpcc.c parent.setPosition(childStartPosition + Atom.FULL_HEADER_SIZE);
parent.skipBytes(6); parent.skipBytes(2);
boolean fullRangeFlag = (parent.readUnsignedByte() & 1) != 0; boolean fullRangeFlag = (parent.readUnsignedByte() & 1) != 0;
int colorPrimaries = parent.readUnsignedByte(); int colorPrimaries = parent.readUnsignedByte();
int transferCharacteristics = parent.readUnsignedByte(); int transferCharacteristics = parent.readUnsignedByte();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment