mpv-player / mpv-player/mpv

Corrupted H.265 videos can freeze mpv

Open
#8,284 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

core:video os:linux vo:gpu:x11
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

Important Information

Provide following Information:

  • mpv version: Master branch of this repo and version 0.32.0
  • OS: NixOS 20.09 and WSL 2 with Debian 10.6.
Reproduction steps

During fuzzing of mpv four mutated H.265 video files were found that don't play properly and freeze mpv.
The video files in question are attached. They can be played with mpv --no-config

Expected behavior

Video should not play and mpv should exit.

Actual behavior

mpv freezes

Log file

mutation_sample_6030.txt
mutation_sample_3635.txt
mutation_sample_3304.txt
mutation_sample_111.txt

Sample files

mutation_sample_6030.mkv
mutation_sample_3635.mkv
mutation_sample_3304.mkv
mutation_sample_111.mkv

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the freeze with the attached mutation_sample_6030.mkv, mutation_sample_3635.mkv, mutation_sample_3304.mkv, or mutation_sample_111.mkv using mpv --no-config; the corresponding log files are also attached. Trace the H.265 playback path from this reproducer and use the expected behavior as the completion check: mpv should exit instead of freezing.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
audio-video-rtc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.