Fix all VDPAU decoders.

Fixes ticket #3726.
This commit is contained in:
Carl Eugen Hoyos 2014-06-18 11:35:33 +02:00
parent a740cae4a0
commit 076ab9f7e3

View File

@ -434,6 +434,9 @@ static int frame_size_alloc(MpegEncContext *s, int linesize)
{
int alloc_size = FFALIGN(FFABS(linesize) + 64, 32);
if (s->avctx->hwaccel || s->avctx->codec->capabilities & CODEC_CAP_HWACCEL_VDPAU)
return 0;
if (linesize < 24) {
av_log(s->avctx, AV_LOG_ERROR, "Image too small, temporary buffers cannot function\n");
return AVERROR_PATCHWELCOME;