mirror of https://git.ffmpeg.org/ffmpeg.git
lavu/qsv: allow surface size larger than requirement
Just like commit 6829a07944
,
surface size larger than requirement should not be treated as error.
Signed-off-by: Zhong Li <zhong.li@intel.com>
This commit is contained in:
parent
14eea7c47a
commit
15d016be30
|
@ -389,7 +389,7 @@ static mfxStatus frame_alloc(mfxHDL pthis, mfxFrameAllocRequest *req,
|
||||||
!(req->Type & (MFX_MEMTYPE_FROM_VPPIN | MFX_MEMTYPE_FROM_VPPOUT)) ||
|
!(req->Type & (MFX_MEMTYPE_FROM_VPPIN | MFX_MEMTYPE_FROM_VPPOUT)) ||
|
||||||
!(req->Type & MFX_MEMTYPE_EXTERNAL_FRAME))
|
!(req->Type & MFX_MEMTYPE_EXTERNAL_FRAME))
|
||||||
return MFX_ERR_UNSUPPORTED;
|
return MFX_ERR_UNSUPPORTED;
|
||||||
if (i->Width != i1->Width || i->Height != i1->Height ||
|
if (i->Width > i1->Width || i->Height > i1->Height ||
|
||||||
i->FourCC != i1->FourCC || i->ChromaFormat != i1->ChromaFormat) {
|
i->FourCC != i1->FourCC || i->ChromaFormat != i1->ChromaFormat) {
|
||||||
av_log(ctx, AV_LOG_ERROR, "Mismatching surface properties in an "
|
av_log(ctx, AV_LOG_ERROR, "Mismatching surface properties in an "
|
||||||
"allocation request: %dx%d %d %d vs %dx%d %d %d\n",
|
"allocation request: %dx%d %d %d vs %dx%d %d %d\n",
|
||||||
|
|
Loading…
Reference in New Issue