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