mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
Bug 1611622 - Allow nil packets in OGG demuxer. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D71349
This commit is contained in:
parent
115a8d5dfa
commit
428794fe58
@ -1424,7 +1424,8 @@ RefPtr<MediaRawData> OggTrackDemuxer::NextSample() {
|
||||
bool eos = packet->e_o_s;
|
||||
OggCodecState* state = mParent->GetTrackCodecState(mType);
|
||||
RefPtr<MediaRawData> data = state->PacketOutAsMediaRawData();
|
||||
if (!data) {
|
||||
// ogg allows 'nil' packets, that are EOS and of size 0.
|
||||
if (!data || (data->mEOS && data->Size() == 0)) {
|
||||
return nullptr;
|
||||
}
|
||||
if (mType == TrackInfo::kAudioTrack) {
|
||||
|
Loading…
Reference in New Issue
Block a user