Get the PTS for the current video packet
| 2468 | |
| 2469 | // Get the PTS for the current video packet |
| 2470 | int64_t FFmpegReader::GetPacketPTS() { |
| 2471 | if (packet) { |
| 2472 | int64_t current_pts = packet->pts; |
| 2473 | if (current_pts == AV_NOPTS_VALUE && packet->dts != AV_NOPTS_VALUE) |
| 2474 | current_pts = packet->dts; |
| 2475 | |
| 2476 | // Return adjusted PTS |
| 2477 | return current_pts; |
| 2478 | } else { |
| 2479 | // No packet, return NO PTS |
| 2480 | return AV_NOPTS_VALUE; |
| 2481 | } |
| 2482 | } |
| 2483 | |
| 2484 | // Update PTS Offset (if any) |
| 2485 | void FFmpegReader::UpdatePTSOffset() { |
nothing calls this directly
no outgoing calls
no test coverage detected