Fixed FPS conversion from FLV files.
This commit is contained in:
parent
9b6f63671c
commit
3c2f372884
1 changed files with 1 additions and 1 deletions
|
@ -996,7 +996,7 @@ JSON::Value FLV::Tag::toJSON(JSON::Value & metadata){
|
||||||
metadata["video"]["height"] = (long long int)tmp->getContentP("height")->NumValue();
|
metadata["video"]["height"] = (long long int)tmp->getContentP("height")->NumValue();
|
||||||
}
|
}
|
||||||
if (tmp->getContentP("framerate")){
|
if (tmp->getContentP("framerate")){
|
||||||
metadata["video"]["fpks"] = (long long int)tmp->getContentP("framerate")->NumValue() * 1000;
|
metadata["video"]["fpks"] = (long long int)(tmp->getContentP("framerate")->NumValue() * 1000.0);
|
||||||
}
|
}
|
||||||
if (tmp->getContentP("videodatarate")){
|
if (tmp->getContentP("videodatarate")){
|
||||||
metadata["video"]["bps"] = (long long int)(tmp->getContentP("videodatarate")->NumValue() * 1024) / 8;
|
metadata["video"]["bps"] = (long long int)(tmp->getContentP("videodatarate")->NumValue() * 1024) / 8;
|
||||||
|
|
Loading…
Add table
Reference in a new issue