Fixed a warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38673 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user