purposeful default 5 min length for ogg vorbis streams
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6541 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -189,9 +189,8 @@ OggVorbisStream::GetStreamInfo(int64 *frameCount, bigtime_t *duration,
|
||||
format->SetMetaData((void*)&GetHeaderPackets(),sizeof(GetHeaderPackets()));
|
||||
|
||||
// compute frame count and duration from sample count
|
||||
int64 samples = 1000000;
|
||||
*frameCount = samples;
|
||||
*duration = (1000000LL * samples) / (long long)format->u.encoded_audio.output.frame_rate;
|
||||
*duration = 5 * 60 * 1000000;
|
||||
*frameCount = *duration * (long long)format->u.encoded_audio.output.frame_rate;
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user