mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-07-08 18:06:30 +00:00
[PR #1947] fix(avc): Remove unnecessary TODO for idr_pic_id #2752
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?
Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/1947
State: closed
Merged: Yes
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