mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-28 11:23:45 +02:00
Fix OGG Vorbis decoding error for files with empty EOS pages (VLC-encoded)
This commit is contained in:
@@ -499,6 +499,10 @@ class OggAudioTrackBacking implements InputAudioTrackBacking {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (packet.data.byteLength === 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const { durationInSamples, vorbisBlockSize } = extractSampleMetadata(
|
||||
packet.data,
|
||||
this.bitstream.codecInfo,
|
||||
|
||||
Reference in New Issue
Block a user