Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

Commit

Permalink
FIX: [PT] workaround rouding issues (fixes #70)
Browse files Browse the repository at this point in the history
  • Loading branch information
koying committed Mar 13, 2016
1 parent 45b9279 commit 25e89d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void CDVDAudioCodecPassthroughRaw::GetData(DVDAudioFrame &frame)
break;
}
}
m_sampleRate = frame.nb_frames / frame.duration;
m_sampleRate = (frame.nb_frames / frame.duration) + 1 /* for rounding */;
frame.duration *= DVD_TIME_BASE;

frame.sample_rate = GetSampleRate();
Expand Down

0 comments on commit 25e89d3

Please sign in to comment.