mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-02 13:23:51 +02:00
Make test more resilient
This commit is contained in:
@@ -156,7 +156,6 @@ test('MPEG-TS muxing with AVC and AAC', async () => {
|
|||||||
|
|
||||||
const secondVideoPacket = await videoSink.getNextPacket(firstVideoPacket);
|
const secondVideoPacket = await videoSink.getNextPacket(firstVideoPacket);
|
||||||
assert(secondVideoPacket);
|
assert(secondVideoPacket);
|
||||||
expect(secondVideoPacket.type).toBe('delta');
|
|
||||||
|
|
||||||
for await (const packet of videoSink.packets()) {
|
for await (const packet of videoSink.packets()) {
|
||||||
expect(packet.data.slice(0, 4)).toEqual(new Uint8Array([0, 0, 0, 1])); // Annex B start code
|
expect(packet.data.slice(0, 4)).toEqual(new Uint8Array([0, 0, 0, 1])); // Annex B start code
|
||||||
|
|||||||
Reference in New Issue
Block a user