summaryrefslogtreecommitdiffstats
path: root/libhb/stream.c
diff options
context:
space:
mode:
authorvan <[email protected]>2008-11-08 06:26:57 +0000
committervan <[email protected]>2008-11-08 06:26:57 +0000
commit89eef8d080649cc44a1abc7ed0a0248c6976951d (patch)
tree1d188bb7a927972bdf96ab24dc9544ffb180ed54 /libhb/stream.c
parent9f6d2aa0349191b7f83e9db200f0de16bf868670 (diff)
- Always use HandBrake's DTS decoder rather than ffmpeg's even for inputs we read via ffmpeg so that we get the user-specified mixdown. Otherwise we eventually abort in the sample rate converter or audio encoder.
- Teach HB's DTS coder to handle implicit timestamps so that it doesn't screw up on mkv's & some m2ts inputs. - mkv's produced from Bluray HD content seem to have large timestamp errors - filter them out in the decoder so that sync doesn't drop big chunks of our audio. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1904 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/stream.c')
-rwxr-xr-xlibhb/stream.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libhb/stream.c b/libhb/stream.c
index 665cea6f3..ee5c5f634 100755
--- a/libhb/stream.c
+++ b/libhb/stream.c
@@ -2520,6 +2520,10 @@ static void add_ffmpeg_audio( hb_title_t *title, hb_stream_t *stream, int id )
{
audio->config.in.codec = HB_ACODEC_AC3;
}
+ else if ( codec->codec_id == CODEC_ID_DTS )
+ {
+ audio->config.in.codec = HB_ACODEC_DCA;
+ }
else
{
audio->config.in.codec = HB_ACODEC_FFMPEG;