Fixed a warning.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38673 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2010-09-16 13:56:12 +00:00
parent b524af7e81
commit 51802669a5

View File

@ -734,7 +734,7 @@ double
AVFormatReader::StreamCookie::FrameRate() const
{
// TODO: Find a way to always calculate a correct frame rate...
double frameRate;
double frameRate = 1.0;
switch (fStream->codec->codec_type) {
case CODEC_TYPE_AUDIO:
frameRate = (double)fStream->codec->sample_rate;
@ -754,7 +754,6 @@ AVFormatReader::StreamCookie::FrameRate() const
frameRate = 25.0f;
break;
default:
frameRate = 1.0;
break;
}
if (frameRate <= 0.0)