Closed Bug 1496222 Opened 6 years ago Closed 6 years ago

ffvp9 fails to decode some VP9 files

Categories

(Core :: Audio/Video: Playback, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla64
Tracking Status
firefox64 --- fixed

People

(Reporter: jya, Assigned: jya)

References

()

Details

Attachments

(1 file)

Those files: https://jyavenard.github.io/htmltests/mediatest/webm/vp9/yuv420p12.webm https://jyavenard.github.io/htmltests/mediatest/webm/vp9/yuv422p10.webm https://jyavenard.github.io/htmltests/mediatest/webm/vp9/yuv422p12.webm Fail to play with ffmpeg. They are made of a single frame. That frame is passed to avcodec_decode_video2 (https://searchfox.org/mozilla-central/source/dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp#219) it will use all bytes, but doesn't return any frame. Then the decoder is drained, feeding null/zero to avcodec_decode_video2 which returns -1 Draining should never return -1.
If I disable MT decoding (by setting mCodecContext->thread_count = 1) then the first avcodec_decode_video2 returns 1
Assignee: nobody → jyavenard
Rank: 10
Priority: -- → P2
Pushed by jyavenard@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/44cc1c10c530 Add missing pixel format in FFmpeg decoder r=padenot
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: