Changeset 104

Show
Ignore:
Timestamp:
04/18/06 13:42:29 (3 years ago)
Author:
jlee
Message:

Fix for black and white wmv conversion

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/org/thestaticvoid/iriverter/Converter.java

    r102 r104  
    211211                 
    212212                double ofps = (info.getFrameRate() > ConverterOptions.getCurrentProfile().getMaxFrameRate() ? ConverterOptions.getCurrentProfile().getMaxFrameRate() : info.getFrameRate()); 
    213                 commandList.add("-vf"); 
    214                 commandList.add("filmdint=io=" + ((int) Math.round(info.getFrameRate() * 1000)) + ":" + ((int) Math.round(ofps * 1000))); 
     213                if (info.getFrameRate() != ofps && info.getFrameRate() < 1000) {        // HACK: wmv always shows 1000 fps 
     214                        commandList.add("-vf-add"); 
     215                        commandList.add("filmdint=io=" + ((int) Math.round(info.getFrameRate() * 1000)) + ":" + ((int) Math.round(ofps * 1000))); 
     216                } 
    215217                 
    216218                int scaledWidth = ConverterOptions.getDimensions().getWidth();