Don't fall back to the generic hwaccel for DRM_PRIME formats
This commit is contained in:
parent
b448e5bbd7
commit
526d815930
1 changed files with 8 additions and 1 deletions
|
|
@ -1049,7 +1049,14 @@ IFFmpegRenderer* FFmpegVideoDecoder::createHwAccelRenderer(const AVCodecHWConfig
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return new GenericHwAccelRenderer(hwDecodeCfg->device_type);
|
if (hwDecodeCfg->pix_fmt != AV_PIX_FMT_DRM_PRIME) {
|
||||||
|
return new GenericHwAccelRenderer(hwDecodeCfg->device_type);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// We already handle unknown devices types that
|
||||||
|
// output DRM_PRIME frames above in pass 0.
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue