Files
zoneminder/src
Isaac Connor ce5fb82f08 fix: handle AV_NOPTS_VALUE pts/dts in VideoStore
Some cameras produce packets where both pts and dts are AV_NOPTS_VALUE.
Previously, video passthrough skipped timestamp processing for these,
write_packet set dts to -1 and never updated tracking state,
audio_first_dts could be set to AV_NOPTS_VALUE permanently, and the
reorder queue compared AV_NOPTS_VALUE values meaninglessly.

- Video passthrough: synthesize dts as last_dts+1 when both pts/dts
  are undefined, keeping monotonic ordering without colliding with the
  next valid packet's timestamp
- Audio: guard audio_first_dts from being set to AV_NOPTS_VALUE, and
  guard passthrough subtraction to avoid NOPTS arithmetic overflow
- write_packet: synthesize dts as last_dts+1 instead of reusing stale
  last_dts, fall back to 0 when no history exists, and always update
  tracking state (last_dts/next_dts/last_duration) regardless of
  which branch was taken
- Reorder queue: skip reordering when incoming dts is undefined and
  treat queued NOPTS packets as in-order

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 18:19:20 -05:00
..
2013-03-17 00:45:21 +01:00
2024-10-26 14:29:40 -04:00
2024-03-26 13:43:58 -05:00
2024-10-26 14:29:40 -04:00
2025-07-05 08:09:09 -04:00
2021-05-30 21:41:58 +02:00
2026-01-29 18:50:42 -05:00
2025-09-18 14:48:52 -04:00
2024-10-29 13:30:29 -04:00
2025-02-26 21:04:32 +11:00
2025-02-26 21:04:32 +11:00
2025-09-18 10:07:50 -04:00
2026-01-31 12:43:03 -05:00
2023-01-18 16:01:42 -05:00
2025-07-05 08:09:09 -04:00
2025-07-05 08:09:09 -04:00
2025-08-05 14:13:39 -04:00
2026-02-23 18:16:56 -05:00
2026-01-05 16:36:36 -05:00
2026-01-05 16:36:36 -05:00