diff options
author | jstebbins <[email protected]> | 2011-04-02 19:58:34 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-04-02 19:58:34 +0000 |
commit | c5493132981f650d13c03181d53da5e3fd205bcd (patch) | |
tree | 85845fd91828ab1f7b87814567f447564ada5872 /macosx | |
parent | 889409ab149f8d7b20be0dfb720359c80fb7471e (diff) |
Fix garbled previews from BD h.264 sources
Forome reason, frames that are tagged as recovery points in many BD h.264
streams do not result in complete frames when decoded. Pushing 2 extra
frames through the decoder seems to always fix this. This patch extends
something I was already doing when generating previews from a BD structure.
This just applies the same logic to ffmpeg streams that have h.264 video.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3895 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/Controller.m | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/macosx/Controller.m b/macosx/Controller.m index 1e3f50547..7af452a98 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -1901,7 +1901,7 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It } /* if we are a stream, select the first title */ - if (title->type == HB_STREAM_TYPE) + if (title->type == HB_STREAM_TYPE || title->type == HB_FF_STREAM_TYPE) { [fSrcTitlePopUp selectItemAtIndex: 0]; } @@ -4195,7 +4195,8 @@ bool one_burned = FALSE; hb_list_item( list, [fSrcTitlePopUp indexOfSelectedItem] ); /* If we are a stream type and a batch scan, grok the output file name from title->name upon title change */ - if (title->type == HB_STREAM_TYPE && hb_list_count( list ) > 1 ) + if ((title->type == HB_STREAM_TYPE || title->type == HB_FF_STREAM_TYPE) && + hb_list_count( list ) > 1 ) { /* we set the default name according to the new title->name */ [fDstFile2Field setStringValue: [NSString stringWithFormat: |