mirror of
https://github.com/mpv-player/mpv
synced 2025-01-29 03:02:53 +00:00
Check mpi type before returning an DR buffer in get_image, fixes jerkiness
with MPEG1/2 and -dr -slices git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28974 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
20ca58bbfb
commit
91dd12b122
@ -765,6 +765,9 @@ static uint32_t get_image(mp_image_t *mpi) {
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user