Skip to content

Commit

Permalink
[FragmentedSampleReader][Cleanup] add our wvtt format define
Browse files Browse the repository at this point in the history
Added to remove bento4 custom patch
  • Loading branch information
CastagnaIT committed Aug 24, 2024
1 parent 336cd62 commit 70709a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/samplereader/FragmentedSampleReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ namespace
{
constexpr uint8_t MP4_TFRFBOX_UUID[] = {0xd4, 0x80, 0x7e, 0xf2, 0xca, 0x39, 0x46, 0x95,
0x8e, 0x54, 0x26, 0xcb, 0x9e, 0x46, 0xa7, 0x9f};

constexpr AP4_UI32 MP4_SAMPLE_FORMAT_WVTT = AP4_ATOM_TYPE('w', 'v', 't', 't');
} // unnamed namespace


Expand Down Expand Up @@ -484,7 +486,7 @@ void CFragmentedSampleReader::UpdateSampleDescription()
case AP4_SAMPLE_FORMAT_STPP:
m_codecHandler = new TTMLCodecHandler(desc, false);
break;
case AP4_SAMPLE_FORMAT_WVTT:
case MP4_SAMPLE_FORMAT_WVTT:
m_codecHandler = new WebVTTCodecHandler(desc, false);
break;
case AP4_SAMPLE_FORMAT_VP9:
Expand Down

0 comments on commit 70709a4

Please sign in to comment.