summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvan <[email protected]>2008-02-29 18:24:46 +0000
committervan <[email protected]>2008-02-29 18:24:46 +0000
commit10c233da4008525393ed7552a49de1008f64b7b3 (patch)
tree9536b3a4e7a3cf8500968ebb3bcc17ef21530dc6
parent80414cfcf3c159471520cc7ab27684b45a6154ed (diff)
It's a good idea to have a buffer for every pid you decide to decode.
Max buffers was 1/4 max streams. This makes it same as max streams. (Fixes crash reported by ncbp at http://forum.handbrake.fr/viewtopic.php?p=28899&sid=0c89bb9c9aed7eee51c294f25ac61e99#p28899) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1321 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rwxr-xr-xlibhb/stream.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libhb/stream.c b/libhb/stream.c
index 0af712c91..ed91f48e3 100755
--- a/libhb/stream.c
+++ b/libhb/stream.c
@@ -14,11 +14,9 @@
typedef enum { hb_stream_type_unknown = 0, hb_stream_type_transport, hb_stream_type_program } hb_stream_type_t;
-#define kMaxNumberDecodeStreams 8
-#define kMaxNumberVideoPIDS 16
+#define kMaxNumberVideoPIDS 1
#define kMaxNumberAudioPIDS 16
-//#define kVideoStream 0
-//#define kAudioStream 1
+#define kMaxNumberDecodeStreams (kMaxNumberVideoPIDS+kMaxNumberAudioPIDS)
#define kNumDecodeBuffers 2
#define kMaxNumberPMTStreams 32