mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[ENHANCEMENT] Handle idr_pic_id in AVC slice header parsing #861
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:
Found a TODO in the AVC slice header parsing that suggests incomplete handling of IDR picture IDs:
Location:
src/lib_ccx/avc_functions.c:998Current code:
Issue:
The IDR (Instantaneous Decoder Refresh) picture ID is:
dvprint)Potential improvements:
dec_ctx->avc_ctx->idr_pic_id)Questions for maintainers:
idr_pic_idbe stored in the AVC context?Research:
According to H.264 spec,
idr_pic_ididentifies IDR pictures and can range from 0-65535. It's used to identify different IDR pictures when multiple occur in sequence.Proposed solution:
idr_pic_idfield to the appropriate context structureBackground:
Working toward GSoC 2026 with CCExtractor. First PR (#1889) merged. Focusing on core video processing and subtitle extraction for the CCExtractor 1.00 release.
Would love to implement this if you can guide me on whether/how the ID should be used!