You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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:
@@ -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",
|
||||||
|
Reference in New Issue
Block a user