On 19.02.2021 23:33, clime wrote:
ctx->cuparseinfo.ulMaxNumDecodeSurfaces = ctx->nb_surfaces; - ctx->cuparseinfo.ulMaxDisplayDelay = 4; + ctx->cuparseinfo.ulMaxDisplayDelay = avctx->flags & AV_CODEC_FLAG_LOW_DELAY ? 0 : 4;
I'd prefer this with proper braces, to make sure no compiler gets the crazy idea to evaluate this as avctx->flags & 4.
Otherwise this is probably fine, but will severely gimp the performance, to the point that it might not even be able to sustain 60 FPS anymore.
Printing a warning might be in order.
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".