mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-13 21:22:29 +00:00
[QUESTION] Clarify VCL HRD parameters TODO in avc_functions.c:907 #862
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?
Originally created by @Harshdhall01 on GitHub (Dec 25, 2025).
Description:
While exploring the codebase for GSoC 2026 preparation, I found a TODO comment that needs clarification:
Location:
src/lib_ccx/avc_functions.c:907Current code:
Context:
This code handles VCL (Video Coding Layer) HRD parameters in H.264/AVC video processing. Currently:
ctx->num_vcl_hrd++) tracks occurrencesexit(1)was commented out, suggesting the skip is acceptableQuestions:
Is VCL HRD parameter support still needed, or has this proven unnecessary in practice?
Should the TODO be:
Does the
num_vcl_hrdcounter show this case occurs frequently in real-world files?Proposed action:
Based on guidance:
Background:
Working toward GSoC 2026 with CCExtractor. First PR (#1889) merged. Focusing on video codec processing and decoder improvements for the CCExtractor 1.00 project.
Happy to submit a PR once I understand the preferred approach!
@cfsmp3 commented on GitHub (Dec 26, 2025):
Great question, and thanks for diving into the codebase for GSoC 2026 prep!
Answer to your questions:
VCL HRD support is NOT needed for CCExtractor's purpose. CCExtractor extracts closed captions from SEI (Supplemental Enhancement Information) NAL units. VCL HRD parameters are about video buffering model compliance for decoders - completely unrelated to caption extraction.
The TODO can be cleaned up. The current code correctly skips these parameters. The message "Hopefully not needed" has proven true - we've never needed VCL HRD parsing for caption extraction.
The counter (
num_vcl_hrd) is useful for tracking if this case occurs in the wild, but even when it does, it doesn't affect caption extraction.Suggested fix:
exit(1)Something like:
Feel free to submit a PR with this cleanup! It's a good first contribution.