From 7e9d0f49a9571a4d6e9510392f73925010c0af00 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sat, 1 Jun 2013 17:15:33 +0200 Subject: [PATCH] generic-pc: increase video and audio demux buffer --- generic-pc/dmx.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/generic-pc/dmx.cpp b/generic-pc/dmx.cpp index 715e6cd..b0c0ee2 100644 --- a/generic-pc/dmx.cpp +++ b/generic-pc/dmx.cpp @@ -120,7 +120,9 @@ bool cDemux::Open(DMX_CHANNEL_TYPE pes_type, void * /*hVideoBuffer*/, int uBuffe num, DMX_T[pes_type], pes_type, uBufferSize, fd); if (dmx_type == DMX_VIDEO_CHANNEL) - uBufferSize = 0x40000; + uBufferSize = 0x100000; /* 1MB */ + if (dmx_type == DMX_AUDIO_CHANNEL) + uBufferSize = 0x10000; /* 64k */ #if 0 if (!pesfds.empty()) {