Files
Ruk DoeandClaude Opus 5.5 55f14c5a63 avcodec/libaribcaption: decide text mode clears on the text regions
Text mode output is caption.text, which never holds ruby. It decided
whether there was anything to show from region_count, so a caption with
only ruby regions was output as text. Without CS, that event held an
empty text and erased the previous caption, which only CS may do. With
CS it failed: libaribcaption returns a NULL text when it is empty, and
av_strdup(NULL) was reported as ENOMEM.

Decide on the regions that are not ruby and hold a character instead.
The text itself is not a reliable test, as it can hold line breaks
without any character. Nothing to show gives no event, or the empty
clear event with CS, as in the other modes; a NULL text is taken as
empty.

Add a text mode test on the ruby sample. The ruby only caption without
CS at 5s now produces no event.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DdDiDRusmi6eD7qSrKBjHb
2026-11-06 04:39:07 +00:00
..
…
2026-10-27 13:37:51 +00:00
…
…
…