
    if (*pix_fmt == AV_PIX_FMT_NONE) {
        av_log(ctx, AV_LOG_ERROR,
               "The hardware pixel format '%s' is not supported by the device type '%s'\n",
               av_get_pix_fmt_name(ctx ? ctx->format : AV_PIX_FMT_NONE),
               (ctx && ctx->internal && ctx->internal->hw_type) ? ctx->internal->hw_type->name : "unknown");
