Skip to content

Commit

Permalink
[demuxers/Mp4] Add support for Opus audio tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
eumagga0x2a committed Jan 25, 2021
1 parent dc83a5e commit 05a18d6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion avidemux_plugins/ADM_demuxers/Mp4/ADM_mp4Analyzer.cpp
Expand Up @@ -1251,9 +1251,16 @@ uint8_t MP4Header::parseStbl(void *ztom,uint32_t trackType,uint32_t trackScale)
break;
}
case MKFCCR('Q','D','M','2'):
case MKFCCR('O','p','u','s'):
{
int64_t sz;
audioCodec(QDM2);
if(MKFCCR('Q','D','M','2') == entryName)
{
audioCodec(QDM2)
}else
{
audioCodec(OPUS)
}
sz=son.getRemainingSize();
_tracks[1+nbAudioTrack].extraDataSize=sz;
_tracks[1+nbAudioTrack].extraData=new uint8_t[sz];
Expand Down

0 comments on commit 05a18d6

Please sign in to comment.