summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-04 22:43:34 +0100
committerwm4 <wm4@nowhere>2014-11-05 01:41:35 +0100
commit3a50bbf563ce627dcbfcb23c0f33df2a5a4e00f0 (patch)
tree09df5ca5d47a157716cedb6d624db6229fae63ec /video
parentffe9c0350259efa81bc5500226c65315cd8b936d (diff)
downloadmpv-3a50bbf563ce627dcbfcb23c0f33df2a5a4e00f0.tar.bz2
mpv-3a50bbf563ce627dcbfcb23c0f33df2a5a4e00f0.tar.xz
video: refuse to allocate image data for hwaccel formats
Makes no sense.
Diffstat (limited to 'video')
-rw-r--r--video/mp_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/mp_image.c b/video/mp_image.c
index ea84bb4dbd..860a47ea6f 100644
--- a/video/mp_image.c
+++ b/video/mp_image.c
@@ -122,7 +122,7 @@ static bool mp_image_alloc_planes(struct mp_image *mpi)
{
assert(!mpi->planes[0]);
- if (!mp_image_params_valid(&mpi->params))
+ if (!mp_image_params_valid(&mpi->params) || mpi->fmt.flags & MP_IMGFLAG_HWACCEL)
return false;
// Note: for non-mod-2 4:2:0 YUV frames, we have to allocate an additional