mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
accel: ignore codec level
Hardware decoding will still be used even if the codec level is unknown or higher than the hardware's reported supported level. From FFmpeg: "It's generally a good idea to pass this flag unless you have a specificreason not to, as hardware tends to under-report supported levels." Change-Id: I83614b0eab6166a42973f062e666783c2a8e7627
This commit is contained in:

committed by
Adrien Béraud

parent
17f31b5941
commit
8f0e570b78
@ -151,6 +151,8 @@ getFormatCb(AVCodecContext* codecCtx, const AVPixelFormat* formats)
|
||||
JAMI_DBG() << "Found compatible hardware format for "
|
||||
<< avcodec_get_name(static_cast<AVCodecID>(accel->getCodecId()))
|
||||
<< " decoder with " << accel->getName();
|
||||
// hardware tends to under-report supported levels
|
||||
codecCtx->hwaccel_flags |= AV_HWACCEL_FLAG_IGNORE_LEVEL;
|
||||
return formats[i];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user