Changeset 2caa28c54247d443c336e3d70d8019190e674b0e

Show
Ignore:
Timestamp:
03/15/08 12:14:14 (10 months ago)
Author:
wgw <tjm1100@gmail.com>
git-committer:
wgw <tjm1100@gmail.com> 1205601254 -0500
git-parent:

[0efcd36abc1c343c7fe8771bb3191f7fc0587d22]

git-author:
wgw <tjm1100@gmail.com> 1205601254 -0500
Message:

no audio is compatible

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/video/transcode.py

    r0efcd36 r2caa28c  
    299299        return False 
    300300 
    301     if not akbps or int(akbps) > config.getMaxAudioBR(tsn): 
    302         debug_write(__name__, fn_attr(), ['FALSE,', akbps, 'kbps exceeds max audio bitrate.', inFile]) 
    303         return False 
    304  
    305     if not kbps or int(kbps)-int(akbps) > config.strtod(config.getMaxVideoBR())/1000: 
    306         debug_write(__name__, fn_attr(), ['FALSE,', kbps, 'kbps exceeds max video bitrate.', inFile]) 
     301    if acodec != None: 
     302        if not akbps or int(akbps) > config.getMaxAudioBR(tsn): 
     303            debug_write(__name__, fn_attr(), ['FALSE,', akbps, 'kbps exceeds max audio bitrate.', inFile]) 
     304            return False 
     305 
     306    if kbps != None: 
     307        abit = max('0', akbps) 
     308        if int(kbps)-int(abit) > config.strtod(config.getMaxVideoBR())/1000: 
     309            debug_write(__name__, fn_attr(), ['FALSE,', kbps, 'kbps exceeds max video bitrate.', inFile]) 
     310            return False 
     311    else: 
     312        debug_write(__name__, fn_attr(), ['FALSE,', kbps, 'kbps not supported.', inFile]) 
    307313        return False 
    308314