summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorvan <[email protected]>2009-07-13 05:21:25 +0000
committervan <[email protected]>2009-07-13 05:21:25 +0000
commit89630d101b8ca344f17f0aae4f12ae5996e757a0 (patch)
treefc3efff1e22eece1920fbc30547a25b0e57e5d17 /libhb
parent33966cd4cdaecff781a9cfeff7aa108a31465323 (diff)
- Some DVB programs have a lot of streams (20 for BBC HD) so up max from 16 to 32
- If we find a DVB AC-3 stream descriptor mark the associated stream as AC-3 so we don't mistakenly type it as MPEG-2. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2687 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r--libhb/stream.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libhb/stream.c b/libhb/stream.c
index 7f863c508..9c0349096 100644
--- a/libhb/stream.c
+++ b/libhb/stream.c
@@ -89,7 +89,7 @@ typedef enum {
} hb_stream_type_t;
#define kMaxNumberVideoPIDS 1
-#define kMaxNumberAudioPIDS 15
+#define kMaxNumberAudioPIDS 31
#define kMaxNumberDecodeStreams (kMaxNumberVideoPIDS+kMaxNumberAudioPIDS)
#define kMaxNumberPMTStreams 32
@@ -1702,6 +1702,10 @@ static void decode_element_descriptors(hb_stream_t* stream, int esindx,
stream->a52_info[esindx].lang_code = lang_to_code(lang_for_code2((const char *)&dp[2]));
break;
+ case 0x6a: // DVB AC-3 descriptor
+ stream->ts_stream_type[esindx+1] = 0x81;
+ break;
+
default:
break;
}