mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-18 12:03:00 +00:00
[PR #1872] [MERGED] fix(timing): Fix --goptime producing compressed timestamps #2645
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/1872
Author: @cfsmp3
Created: 12/21/2025
Status: ✅ Merged
Merged: 12/21/2025
Merged by: @cfsmp3
Base:
master← Head:fix/goptime-and-startcredits-bugs📝 Commits (1)
94a4392fix(timing): Fix --goptime producing compressed timestamps (Test 163)📊 Changes
2 files changed (+14 additions, -2 deletions)
View changed files
📝
src/ccextractor.c(+5 -0)📝
src/lib_ccx/general_loop.c(+9 -2)📄 Description
Summary
Fixes Test 163 where
--goptimeoption produced compressed timestamps (00:00:01-02) instead of actual GOP times (17:56:40-47).Root Cause
When using
--goptime, there was a conflict between:The sync detection code saw these as ~64,598-second "jumps" and kept resetting timing, causing the output timestamps to be corrupted.
Fixes Applied
Guard video PES timing in
general_loop.c- skipset_current_ptsandset_ftswhenuse_gop_as_pts == 1to prevent PES PTS from overwriting GOP-based timingDisable sync check in
ccextractor.cwhenuse_gop_as_pts == 1since GOP time and PES PTS are in different time bases and sync detection is meaningless in this modeTest Results
Sample:
c83f765c661595e1bfa4750756a54c006c6f2c697a436bc0726986f71f0706cd.tsBefore fix:
After fix:
Test Plan
--goptimenow produces correct GOP-based timestamps--goptime) still works correctly🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.