We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa701a7 commit 5cb1a71Copy full SHA for 5cb1a71
src/c2pa/c2pa.py
@@ -746,10 +746,9 @@ def __init__(self, file):
746
self._initialized = False
747
self._stream = None
748
749
- # Generate unique stream ID efficiently using object ID and counter
750
- # Safely increment stream ID with overflow protection
+ # Generate unique stream ID using object ID and counter
751
if Stream._next_stream_id >= Stream._MAX_STREAM_ID:
752
- Stream._next_stream_id = 0 # Reset to 0 if we hit the maximum
+ Stream._next_stream_id = 0
753
self._stream_id = f"{id(self)}-{Stream._next_stream_id}"
754
Stream._next_stream_id += 1
755
0 commit comments