mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-05 05:37:09 +00:00
The media_src_kind_mismatch rule classified .mp3 and .jpeg but not .m4a or .avif, so an <img> pointed at an audio file or a <video> at a still slipped through for those two formats. Add .avif to IMAGE_SRC_EXT and .m4a to AUDIO_SRC_EXT. .ogg stays out: its container can carry Theora video as well as Vorbis or Opus, so the extension does not name the kind. .m4a is the opposite case -- it is audio-only, and video in the same MP4 container is .m4v, which VIDEO_SRC_EXT already lists. The .ogg case keeps its existing coverage and gains an explicit unknown-extension case alongside it. Refs #4382 Co-authored-by: Yi-111-a <Yi-111-a@users.noreply.github.com>