video: refuse to allocate image data for hwaccel formats

Makes no sense.
This commit is contained in:
wm4 2014-11-04 22:43:34 +01:00
parent ffe9c03502
commit 3a50bbf563
1 changed files with 1 additions and 1 deletions

View File

@ -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