# HG changeset patch # User reimar # Date 1237213503 0 # Node ID cbf56e4c9662ce98e51c6668d9c248d739bbb48f # Parent 605aa9eec186edb7183fe53425f352b6ad0a2605 Check mpi type before returning an DR buffer in get_image, fixes jerkiness with MPEG1/2 and -dr -slices diff -r 605aa9eec186 -r cbf56e4c9662 libvo/vo_gl.c --- a/libvo/vo_gl.c Mon Mar 16 10:29:30 2009 +0000 +++ b/libvo/vo_gl.c Mon Mar 16 14:25:03 2009 +0000 @@ -765,6 +765,9 @@ return VO_FALSE; } if (mpi->flags & MP_IMGFLAG_READABLE) return VO_FALSE; + if (mpi->type != MP_IMGTYPE_STATIC && mpi->type != MP_IMGTYPE_TEMP && + (mpi->type != MP_IMGTYPE_NUMBERED || mpi->number)) + return VO_FALSE; if (mesa_buffer) mpi->width = texture_width; else if (ati_hack) { mpi->width = texture_width;