summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-03 16:53:12 +0000
committernick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-03 16:53:12 +0000
commitb4ecb2411545d2b039a3b8811e48306c89f46703 (patch)
tree64920781bf23fb3dd77fc50f4add623e003c2832
parentff37837de411f5eeac1cbb20e5a88b82bfe5f75d (diff)
downloadmpv-b4ecb2411545d2b039a3b8811e48306c89f46703.tar.bz2
mpv-b4ecb2411545d2b039a3b8811e48306c89f46703.tar.xz
Use as much buffers as possible
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4930 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libvo/vosub_vidix.c4
-rw-r--r--vidix/vidix.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/libvo/vosub_vidix.c b/libvo/vosub_vidix.c
index 37dfa64ea2..6bd5038bb7 100644
--- a/libvo/vosub_vidix.c
+++ b/libvo/vosub_vidix.c
@@ -29,7 +29,7 @@
#include "osd.h"
#include "video_out.h"
-#define NUM_FRAMES 10 /* Temporary: driver will overwrite it */
+#define NUM_FRAMES VID_PLAY_MAXFRAMES /* Temporary: driver will overwrite it */
#define UNUSED(x) ((void)(x)) /* Removes warning about unused arguments */
static VDL_HANDLE vidix_handler = NULL;
@@ -571,7 +571,7 @@ int vidix_init(unsigned src_width,unsigned src_height,
vidix_play.dest.y = y_org;
vidix_play.dest.w = dst_width;
vidix_play.dest.h = dst_height;
- vidix_play.num_frames=vo_doublebuffering?NUM_FRAMES:1;
+ vidix_play.num_frames=vo_doublebuffering?NUM_FRAMES-1:1;
vidix_play.src.pitch.y = vidix_play.src.pitch.u = vidix_play.src.pitch.v = 0;
if(info)
{
diff --git a/vidix/vidix.h b/vidix/vidix.h
index 0ddc7b124f..67462b33c7 100644
--- a/vidix/vidix.h
+++ b/vidix/vidix.h
@@ -150,7 +150,7 @@ typedef struct vidix_playback_s
/* memory model */
unsigned frame_size; /* driver -> app: destinition frame size */
unsigned num_frames; /* app -> driver: after call: driver -> app */
-#define VID_PLAY_MAXFRAMES 32
+#define VID_PLAY_MAXFRAMES 64 /* reasonable limitation for decoding ahead */
unsigned offsets[VID_PLAY_MAXFRAMES]; /* driver -> app */
vidix_yuv_t offset; /* driver -> app: relative offsets within frame for yuv planes */
void* dga_addr; /* driver -> app: linear address */