mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-26 08:00:20 +00:00
[PR #1947] [MERGED] fix(avc): Remove unnecessary TODO for idr_pic_id #2748
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/1947
Author: @cfsmp3
Created: 1/1/2026
Status: ✅ Merged
Merged: 1/1/2026
Merged by: @cfsmp3
Base:
master← Head:fix/remove-idr-pic-id-todo📝 Commits (1)
925560ffix(avc): Remove unnecessary TODO for idr_pic_id📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/lib_ccx/avc_functions.c(+1 -1)📄 Description
Summary
Removes the TODO comment at
src/lib_ccx/avc_functions.c:997and adds a clarifying comment explaining whyidr_pic_idis read but not stored.Why idr_pic_id doesn't need to be stored:
Bitstream parsing requirement: The value must be read to advance the bitstream position - subsequent fields like
pic_order_cnt_lsbcome after it in the slice headerNot needed for caption extraction: CCExtractor uses
pic_order_cnt_lsbfor frame ordering (when--usepicorderis set) and PTS for timing synchronization - neither requiresidr_pic_idPurpose in H.264:
idr_pic_iddistinguishes between consecutive IDR pictures for decoder error recovery - not relevant for extracting embedded captions from SEI NAL unitsCloses #1895
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.