Closed Bug 1700903 Opened 4 years ago Closed 4 years ago

Don't reject slightly unsual webm files

Categories

(Core :: Audio/Video: Playback, defect)

defect

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: padenot, Assigned: padenot)

Details

Attachments

(3 files)

STR:

Expected:

  • The video plays

Actual:

  • The video doesn't play

The Webm container has a codec_delay of 0, but then when actually decoding the Opus stream, we find that there is a non-zero delay, and we bail. Simply relaxing this check makes it work. This files is played by all other software I've tried.

I can't find a normative text that says that those number should be equal, so we probably should accept this file.

Maybe a bad muxer? This file appears to have been produced with ffmpeg, maybe with youtube-dl or something.

(In reply to Paul Adenot (:padenot) from comment #0)

The Webm container has a codec_delay of 0

After looking at the file in more detail, it simply doesn't have a delay field.

This is the file attached to the bug, trimmed right after the first cluster:

truncate --size=66250 ~/lost-delirious-beautiful-1-trimmed.webm

Depends on D109705

Summary: Don't reject slightly invalid webm files → Don't reject slightly unsual webm files
Pushed by padenot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/af90373d8ef6 Don't reject file when webm codec delay and opus pre-skip do not match. r=kinetik https://hg.mozilla.org/integration/autoland/rev/81294dc587fe Add a test. r=kinetik
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: