diff options
author | dynaflash <[email protected]> | 2009-01-28 06:00:58 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2009-01-28 06:00:58 +0000 |
commit | 4d35035dda728df0ebe01fa35e73d1c4b37ee4b2 (patch) | |
tree | d48b608ac326e8efa98157c8de10fbef96c0526a /macosx/Controller.mm | |
parent | 271785001bdd9c7387649b62ab62823964d13c8c (diff) |
MacGui: Live Preview Fixes
- Fixes and Issue where using chapter markers on ffmpeg input sources caused a crash and or no encode and a gray screen.
- Fixes an issue where not manually selecting a still preview caused the live preview encode to crash.
- Many thanks to refulgentis for troubleshooting this for me. :)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2104 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.mm')
-rw-r--r-- | macosx/Controller.mm | 52 |
1 files changed, 3 insertions, 49 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm index e82f6c658..d185c6b5a 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -2623,56 +2623,10 @@ fWorkingCount = 0; job->mux = [[fDstFormatPopUp selectedItem] tag]; job->vcodec = [[fVidEncoderPopUp selectedItem] tag]; - - /* If mpeg-4, then set mpeg-4 specific options like chapters and > 4gb file sizes */ - if( [fDstFormatPopUp indexOfSelectedItem] == 0 ) - { - /* We set the largeFileSize (64 bit formatting) variable here to allow for > 4gb files based on the format being - mpeg4 and the checkbox being checked - *Note: this will break compatibility with some target devices like iPod, etc.!!!!*/ - if( [fDstMp4LargeFileCheck state] == NSOnState ) - { - job->largeFileSize = 1; - } - else - { - job->largeFileSize = 0; - } - /* We set http optimized mp4 here */ - if( [fDstMp4HttpOptFileCheck state] == NSOnState && [fDstMp4HttpOptFileCheck isEnabled] ) - { - job->mp4_optimize = 1; - } - else - { - job->mp4_optimize = 0; - } - } - if( [fDstFormatPopUp indexOfSelectedItem] == 0 || [fDstFormatPopUp indexOfSelectedItem] == 1 ) - { - /* We set the chapter marker extraction here based on the format being - mpeg4 or mkv and the checkbox being checked */ - if ([fCreateChapterMarkers state] == NSOnState) - { - job->chapter_markers = 1; - } - else - { - job->chapter_markers = 0; - } - } - - if( job->vcodec & HB_VCODEC_X264 ) + job->chapter_markers = 0; + + if( job->vcodec & HB_VCODEC_X264 ) { - if ([fDstMp4iPodFileCheck state] == NSOnState) - { - job->ipod_atom = 1; - } - else - { - job->ipod_atom = 0; - } - /* Set this flag to switch from Constant Quantizer(default) to Constant Rate Factor Thanks jbrjake Currently only used with Constant Quality setting*/ if ([[NSUserDefaults standardUserDefaults] boolForKey:@"DefaultCrf"] > 0 && [fVidQualityMatrix selectedRow] == 2) |