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:
shatty
2004-02-09 02:04:53 +00:00
parent 59c2f096b7
commit 3914c20b70
@@ -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;
}