speedtrans/firefogg.extra.js

19 lines
522 B
JavaScript

$(function() {
Firefogg.prototype.loadFromFp = function(fp) {
var file = fp.file;
this._inputFile = fp.file.path;
this.sourceFilename = fp.file.leafName;
this.state = "";
this.sourceInfo = JSON.stringify(this.getFormatInfo(this._inputFile, false));
this.sourceInfo.video && this.sourceInfo.video.forEach(function(video) {
if (!video.display_aspect_ratio) {
video.display_aspect_ratio = video.width + ':' + video.height;
video.pixel_aspect_ratio = '1:1';
}
});
return true
}
});