changeset 5466:ea1ae0e3ea19

IMGTYPE_IPB fix
author arpi
date Wed, 03 Apr 2002 02:40:09 +0000
parents 1f9c8301a7f2
children 7c2afd5b5163
files libvo/vo_xv.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_xv.c	Wed Apr 03 02:39:02 2002 +0000
+++ b/libvo/vo_xv.c	Wed Apr 03 02:40:09 2002 +0000
@@ -714,6 +714,7 @@
 
 static uint32_t get_image(mp_image_t *mpi){
     if(mpi->type==MP_IMGTYPE_STATIC && num_buffers>1) return VO_FALSE; // it is not static
+    if(mpi->type==MP_IMGTYPE_IPB && num_buffers<3 && mpi->flags&MP_IMGFLAG_READABLE) return VO_FALSE; // not enough
     if(mpi->imgfmt!=image_format || mpi->imgfmt==IMGFMT_BGR24) return VO_FALSE; // needs conversion :(
 //    if(mpi->flags&MP_IMGFLAG_READABLE) return VO_FALSE; // slow video ram
     if(mpi->width==image_width){