Skip to content

REF 007


id: REF-007 title: WebM vs MKV disambiguation in MIME magic-byte detection status: Done priority: Trivial category: refactor labels: [mime, media, optional] milestone: ~ created: 2026-04-08 source: main commit 32d6ac1 (REF-007 modernize MIME sniffing and WebM classification)


Summary

This item is merged to main.

Current eMule-main no longer treats every EBML container as generic Matroska during MIME sniffing. The MIME probe now distinguishes WebM from Matroska by parsing the EBML DocType and also carries the broader magic-table refresh landed on the same slice.

Mainline commit:

  • 32d6ac1REF-007 modernize MIME sniffing and WebM classification

Landed Mainline Shape

Primary files:

  • srchybrid/MediaInfo.cpp
  • srchybrid/OtherFunctions.cpp

Implemented behavior:

  • expanded magic-byte detection for several common archive/media/container types
  • EBML DocType split:
  • webm -> video/webm
  • matroska -> video/x-matroska
  • extension-table additions for the WebM / Ogg family on the same pass

Why The Item Is Closed

This was originally sourced from older experimental MIME work. The narrow, stock-friendly version is now already on main, so there is no remaining backlog work under REF-007.