Skip to content

Commit

Permalink
Fixing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jonoomph committed Oct 24, 2022
1 parent 2bc1c28 commit b70f89f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/FFmpegReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1857,17 +1857,17 @@ void FFmpegReader::Seek(int64_t requested_frame) {

// Get the PTS for the current video packet
int64_t FFmpegReader::GetPacketPTS() {
if (packet) {
int64_t current_pts = packet->pts;
if (current_pts == AV_NOPTS_VALUE && packet->dts != AV_NOPTS_VALUE)
current_pts = packet->dts;

// Return adjusted PTS
return current_pts;
} else {
// No packet, return NO PTS
return AV_NOPTS_VALUE;
}
if (packet) {
int64_t current_pts = packet->pts;
if (current_pts == AV_NOPTS_VALUE && packet->dts != AV_NOPTS_VALUE)
current_pts = packet->dts;

// Return adjusted PTS
return current_pts;
} else {
// No packet, return NO PTS
return AV_NOPTS_VALUE;
}
}

// Update PTS Offset (if any)
Expand Down

0 comments on commit b70f89f

Please sign in to comment.