Skip to content

Commit 1c1a78c

Browse files
committed
rename sample entries.
1 parent c842e75 commit 1c1a78c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

mp4parse/src/boxes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ box_database!(
146146
AVCConfigurationBox 0x6176_6343, // "avcC"
147147
H263SampleEntry 0x7332_3633, // "s263"
148148
H263SpecificBox 0x6432_3633, // "d263"
149-
HEVCSampleEntry 0x6865_7631, // "hev1"
150-
HEVCSampleEntry2 0x6876_6331, // "hvc1"
149+
HEV1SampleEntry 0x6865_7631, // "hev1"
150+
HVC1SampleEntry 0x6876_6331, // "hvc1"
151151
HEVCConfigurationBox 0x6876_6343, // "hvcC"
152152
MP4AudioSampleEntry 0x6d70_3461, // "mp4a"
153153
MP4VideoSampleEntry 0x6d70_3476, // "mp4v"

mp4parse/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5592,8 +5592,7 @@ fn read_video_sample_entry<T: Read>(src: &mut BMFFBox<T>) -> Result<SampleEntry>
55925592
BoxType::AV1SampleEntry => CodecType::AV1,
55935593
BoxType::ProtectedVisualSampleEntry => CodecType::EncryptedVideo,
55945594
BoxType::H263SampleEntry => CodecType::H263,
5595-
BoxType::HEVCSampleEntry => CodecType::HEVC,
5596-
BoxType::HEVCSampleEntry2 => CodecType::HEVC,
5595+
BoxType::HEV1SampleEntry | BoxType::HVC1SampleEntry => CodecType::HEVC,
55975596
_ => {
55985597
debug!("Unsupported video codec, box {:?} found", name);
55995598
CodecType::Unknown
@@ -5706,7 +5705,7 @@ fn read_video_sample_entry<T: Read>(src: &mut BMFFBox<T>) -> Result<SampleEntry>
57065705
protection_info.push(sinf)?;
57075706
}
57085707
BoxType::HEVCConfigurationBox => {
5709-
if name != BoxType::HEVCSampleEntry && name != BoxType::HEVCSampleEntry2 {
5708+
if name != BoxType::HEV1SampleEntry && name != BoxType::HVC1SampleEntry {
57105709
return Status::StsdBadVideoSampleEntry.into();
57115710
}
57125711
let hvcc = read_hvcc(&mut b)?;

0 commit comments

Comments
 (0)