mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-25 07:29:54 +00:00
[PR #1806] [MERGED] fix(parser): use HHMMSSFFF format for ttxt output timestamps #2543
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/1806
Author: @cfsmp3
Created: 12/13/2025
Status: ✅ Merged
Merged: 12/14/2025
Merged by: @cfsmp3
Base:
master← Head:fix/ttxt-timestamp-milliseconds📝 Commits (1)
7113036fix(parser): use HHMMSSFFF format for ttxt output timestamps📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/rust/src/parser.rs(+1 -1)📄 Description
Summary
Fixes a regression in ttxt output where timestamps were missing milliseconds.
The Rust parser was incorrectly setting
date_formattoTimestampFormat::HHMMSS(no milliseconds) instead ofTimestampFormat::HHMMSSFFF(with milliseconds) for--out=ttxt.This bug was introduced in PR #1619 when porting the parser to Rust. The original C code correctly used
ODF_HHMMSSMSwhich includes milliseconds in the timestamp format (HH:MM:SS,mmm).Before (incorrect)
After (correct, matching original C behavior)
Root Cause
In
src/rust/src/parser.rs, theOutFormat::Ttxthandler was setting:Instead of:
Verification
Tested locally with teletext sample:
Output now correctly includes milliseconds in timestamps.
Test plan
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.