mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
parent
a740cae4a0
commit
076ab9f7e3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user